diff --git a/scripts/install b/scripts/install index 31bd48c..bf29a83 100644 --- a/scripts/install +++ b/scripts/install @@ -67,7 +67,7 @@ sudo apt-get update -qq sudo apt-get install syncthing -y --force-yes # Install and monitor service -sed -i '/^\[Service\]$/,/^\[/ s/^Restart=on-failure/Restart=always/' /lib/systemd/system/syncthing@.service +sudo sed -i '/^\[Service\]$/,/^\[/ s/^Restart=on-failure/Restart=always/' /lib/systemd/system/syncthing@.service sudo systemctl daemon-reload sudo systemctl enable syncthing@$SYNCUSER.service #~ sudo yunohost service add -l /var/log/syncthing.log syncthing