2013-08-07 16:48:39 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-05-29 16:59:23 +02:00
|
|
|
if [ -z "$(getent group pulse)" ]; then
|
|
|
|
/usr/sbin/groupadd -r pulse
|
|
|
|
fi
|
2013-08-07 16:48:39 +09:00
|
|
|
|
2018-05-29 16:59:23 +02:00
|
|
|
if [ -z "$(getent passwd pulse)" ]; then
|
|
|
|
/usr/sbin/useradd -r -g pulse -d /var/run/pulse -s /bin/false -c "Pulseaudio System User" pulse
|
|
|
|
/usr/bin/passwd -l pulse
|
|
|
|
fi
|