diff options
author | Ricardo F <rfraile@rfraile.eu> | 2019-01-04 22:16:11 +0100 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2019-03-06 09:50:03 +0000 |
commit | b29204c7bd69054516b94c382c6a3b7491516cc5 (patch) | |
tree | 2dee8373a78a3abb00c8dffacbe58f1f55d50790 | |
parent | 450fe99f997addfee5164df05d93cdeb07f2384a (diff) | |
download | aports-b29204c7bd69054516b94c382c6a3b7491516cc5.tar.bz2 aports-b29204c7bd69054516b94c382c6a3b7491516cc5.tar.xz |
testing/tuptime: use tuptime user for execution
Create the user 'tuptime' for execution in OpenRC and cron.
-rw-r--r-- | testing/tuptime/tuptime.cron | 4 | ||||
-rw-r--r-- | testing/tuptime/tuptime.pre-install | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/testing/tuptime/tuptime.cron b/testing/tuptime/tuptime.cron index 2cbe767603..ff9b39b260 100644 --- a/testing/tuptime/tuptime.cron +++ b/testing/tuptime/tuptime.cron @@ -1,2 +1,4 @@ #!/bin/sh -if [ -x /usr/bin/tuptime ]; then /usr/bin/tuptime -x > /dev/null; fi +if [ -x /usr/bin/tuptime ]; then + su tuptime -s /bin/sh -c '/usr/bin/tuptime -x' > /dev/null +fi diff --git a/testing/tuptime/tuptime.pre-install b/testing/tuptime/tuptime.pre-install new file mode 100644 index 0000000000..19600617dc --- /dev/null +++ b/testing/tuptime/tuptime.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S tuptime 2>/dev/null +adduser -S -D -h /var/lib/tuptime -s /bin/false -G tuptime -g tuptime tuptime 2>/dev/null + +exit 0 |