aboutsummaryrefslogtreecommitdiffstats
path: root/main/chrony/chrony.pre-install
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-08-10 09:56:45 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-08-10 09:56:45 +0000
commitccb4bc1deb480a5daf59c24430dc200fd4517d71 (patch)
treeff7d9017aa962c31d7f164baa66dea8b53d573bc /main/chrony/chrony.pre-install
parent4311f61b56a1ba41ee617a143f2e67ce23a987b7 (diff)
downloadaports-ccb4bc1deb480a5daf59c24430dc200fd4517d71.tar.gz
aports-ccb4bc1deb480a5daf59c24430dc200fd4517d71.tar.bz2
aports-ccb4bc1deb480a5daf59c24430dc200fd4517d71.tar.xz
main/chrony: fixed permissions to run with chrony user
Diffstat (limited to 'main/chrony/chrony.pre-install')
-rw-r--r--main/chrony/chrony.pre-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/chrony/chrony.pre-install b/main/chrony/chrony.pre-install
new file mode 100644
index 0000000000..2c54eccdbd
--- /dev/null
+++ b/main/chrony/chrony.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+addgroup chrony 2>/dev/null
+adduser -S -G chrony -h /var/log/chrony -s /sbin/nologin -D chrony 2>/dev/null
+exit 0