summaryrefslogtreecommitdiff
path: root/contrib/packages/alpine/gnunet/gnunet-user-services.initd
diff options
context:
space:
mode:
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
}