No need to sudo all over the place
This commit is contained in:
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user