From 6266247e61f2a8d3b1d57f96614f4479f98413cf Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Apr 2019 16:51:02 +0200 Subject: [PATCH] reorder SETUP LOGROTATE --- scripts/install | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 #=================================================