No need to sudo all over the place

This commit is contained in:
Alexandre Aubin
2018-12-03 01:04:24 +01:00
committed by pitchum
parent fe159638f5
commit ed60b7782a
6 changed files with 79 additions and 79 deletions

View File

@@ -18,7 +18,7 @@ function ynh_systemctl()
local LOCKFILE="/var/run/moulinette_yunohost.lock"
# Launch the action
sudo systemctl "$ACTION" "$SERVICE" &
systemctl "$ACTION" "$SERVICE" &
local SYSCTLACTION=$!
# Save and release the lock...