aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/opennebula/opennebula-node-kvm.pre-install
blob: fa541642eccb6674b8fd3e3ac258e68cf6ee17c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

addgroup -S oneadmin 2>/dev/null
addgroup -S libvirt 2>/dev/null
adduser -S -D \
	-h /var/lib/one -s /bin/ash -G oneadmin \
	-g "OpenNebula user" oneadmin 2>/dev/null
addgroup oneadmin libvirt 2>/dev/null
addgroup oneadmin readproc 2>/dev/null
addgroup oneadmin kvm 2>/dev/null
passwd -u oneadmin 2>/dev/null

exit 0