mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
Try-restart the service (instead of restart) after adding service to the freedombox-share group to avoid starting the service if app is disabled. Tests performed: - Remove syncthing user from the freedombox-share group, disable syncthing app, increase app version. After the app is upgraded, verify that syncthing user is in the freedombox-share group and syncthing@syncthing.service remains disabled. - Remove syncthing user from the freedombox-share group, enable syncthing app, increase app version. After the app is upgraded, verify that syncthing user is in the freedombox-share group and logs show that syncthing@syncthing.service was restarted. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>