summaryrefslogtreecommitdiff
path: root/contrib/packages/alpine/gnunet/gnunet-user-services.initd
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-26 13:35:48 +0000
committerng0 <ng0@n0.is>2019-10-26 13:35:48 +0000
commit855fbf5b9db9ff680c15e6fd21382c4d7afffc84 (patch)
tree188a133d55e2f22c827bcc70dda14b0cd32f98f0 /contrib/packages/alpine/gnunet/gnunet-user-services.initd
parent6ea27c7f49a1368caae113d148b821fd22f380b7 (diff)
parent5a71ae7aa440f3aa7ca490b7c72bca7982f38348 (diff)
Merge branch 'master' of gnunet.org:gnunet
Diffstat (limited to 'contrib/packages/alpine/gnunet/gnunet-user-services.initd')
-rw-r--r--contrib/packages/alpine/gnunet/gnunet-user-services.initd8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/packages/alpine/gnunet/gnunet-user-services.initd b/contrib/packages/alpine/gnunet/gnunet-user-services.initd
index 6c960944e..0d7a626e7 100644
--- a/contrib/packages/alpine/gnunet/gnunet-user-services.initd
+++ b/contrib/packages/alpine/gnunet/gnunet-user-services.initd
@@ -16,8 +16,8 @@ start() {
for user in $users; do
if test -z "`ps|grep $user|grep gnunet-service-arm`" > /dev/null 2>&1
then
- sudo -u $user gnunet-arm \
- -c /home/$user/.config/gnunet.conf -s
+ su $user -c "gnunet-arm \
+ -c /home/$user/.config/gnunet.conf -s"
fi
done
}
@@ -26,8 +26,8 @@ stop() {
for user in $users; do
if test -n "`ps|grep $user|grep gnunet-service-arm`" > /dev/null 2>&1
then
- sudo -u $user gnunet-arm \
- -c /home/$user/.config/gnunet.conf -e
+ su $user -c "gnunet-arm \
+ -c /home/$user/.config/gnunet.conf -e"
fi
done
}