aboutsummaryrefslogtreecommitdiffstats
path: root/main/cacti/cacti.pre-install
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-02-15 12:31:54 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-02-16 07:13:34 +0000
commit6c521c90cb0e0b114989886a11d705c2fc4a1e8b (patch)
treeef9bd975be4e0246ccda086f5b77978a1203c5b8 /main/cacti/cacti.pre-install
parent4e089bf7a37c085d11ba3605aa81f973d4c37a0c (diff)
downloadaports-6c521c90cb0e0b114989886a11d705c2fc4a1e8b.tar.gz
aports-6c521c90cb0e0b114989886a11d705c2fc4a1e8b.tar.bz2
aports-6c521c90cb0e0b114989886a11d705c2fc4a1e8b.tar.xz
main/cacti: add crontab, several fixes
- add crontab job - fixes in cacti-setup post-install info - fix pre-install user creation - do not include user to www-data group
Diffstat (limited to 'main/cacti/cacti.pre-install')
-rw-r--r--main/cacti/cacti.pre-install5
1 files changed, 2 insertions, 3 deletions
diff --git a/main/cacti/cacti.pre-install b/main/cacti/cacti.pre-install
index 19c56021b5..02e9ad7ad0 100644
--- a/main/cacti/cacti.pre-install
+++ b/main/cacti/cacti.pre-install
@@ -1,9 +1,8 @@
#!/bin/sh
-addgroup -S cacti 2>/dev/null
addgroup -Sg 82 www-data 2>/dev/null
-adduser -SDh /var/lib/cacti -s /sbin/nologin -G cacti -g cacti cacti 2>/dev/null
-adduser cacti www-data 2>/dev/null
+addgroup -S cacti 2>/dev/null
+adduser -S -D -H -h /var/lib/cacti -s /sbin/nologin -G cacti -g cacti cacti 2>/dev/null
exit 0