blob: d7b936de56f7b472f5476d93f8a1fbfffb554cad (
plain)
1 #!/bin/sh
2
3 if [ -z "`getent group libvirt`" ]; then
4 /usr/sbin/groupadd --system libvirt
5 fi
6
7 if [ -z "`getent passwd libvirt`" ]; then
8 /usr/sbin/useradd -r -g libvirt -d /etc/libvirt -s /bin/false -c "libvirt service user" libvirt
9 /usr/bin/passwd -l libvirt
10 fi
|