diff --git a/scripts/install b/scripts/install index 218422c..1308305 100644 --- a/scripts/install +++ b/scripts/install @@ -141,6 +141,16 @@ sudo systemctl enable syncthing@$SYNCUSER.service sudo yunohost service add syncthing@$SYNCUSER -l /var/log/syncthing.log sudo systemctl start syncthing@$SYNCUSER.service +#================================================= +# GENERIC FINALIZATION +#================================================= +# SECURE FILES AND DIRECTORIES +#================================================= + +# Remove acces to all users +sudo yunohost app removeaccess syncthing +sudo yunohost app addaccess syncthing -u $user + #================================================= # SETUP LOGROTATE #================================================= @@ -153,16 +163,6 @@ if [ -d "/etc/logrotate.d" ]; then sudo chmod 0644 /etc/logrotate.d/syncthing fi -#================================================= -# GENERIC FINALIZATION -#================================================= -# SECURE FILES AND DIRECTORIES -#================================================= - -# Remove acces to all users -sudo yunohost app removeaccess syncthing -sudo yunohost app addaccess syncthing -u $user - #================================================= # SETUP SSOWAT #=================================================