summarylogtreecommitdiffstats
path: root/smsd.install
diff options
context:
space:
mode:
authorDenis Yantarev2017-01-31 23:12:44 +0300
committerDenis Yantarev2017-02-01 11:20:56 +0300
commitce46d141c33cf005845657384c11abf27d07d6a4 (patch)
tree63536119612e97e0b201139817fb5c63efbcf46e /smsd.install
parent314b74de219575f036135c344d8943ecb75cf54d (diff)
downloadaur-ce46d141c33cf005845657384c11abf27d07d6a4.tar.gz
Added -r to groupadd and useradd in install script
Diffstat (limited to 'smsd.install')
-rw-r--r--smsd.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/smsd.install b/smsd.install
index a4d5b74791f..37656a93d38 100644
--- a/smsd.install
+++ b/smsd.install
@@ -1,11 +1,11 @@
# arg 1: the new package version
post_install() {
- getent group smsd >/dev/null 2>&1 || groupadd smsd
+ getent group smsd >/dev/null 2>&1 || groupadd -r smsd
if getent passwd smsd >/dev/null 2>&1; then
usermod -d /var/spool/sms -c 'SMS Gateway Daemon' \
-s /sbin/nologin smsd >/dev/null 2>&1
else
- useradd -c 'SMS Gateway Daemon' -g smsd \
+ useradd -r -c 'SMS Gateway Daemon' -g smsd \
-d /var/spool/sms -s /sbin/nologin smsd >/dev/null 2>&1
fi
groupmems -g uucp -a smsd >/dev/null 2>&1