diff --git a/scripts/remove b/scripts/remove index 2f4b1ab..b3ecd33 100644 --- a/scripts/remove +++ b/scripts/remove @@ -56,17 +56,6 @@ sudo mv $SYNCHOME $SYNCHOME.old -#================================================= -# REMOVE LOGROTATE CONFIGURATION -#================================================= -ynh_print_info "Removing logrotate configuration" - -# Remove the app-specific logrotate config -if [ -f /etc/logrotate.d/syncthing ] -then - sudo rm /etc/logrotate.d/syncthing -fi - #================================================= # REMOVE NGINX CONFIGURATION @@ -80,6 +69,17 @@ sudo rm /etc/nginx/conf.d/$domain.d/syncthing.conf sudo systemctl reload nginx.service sudo yunohost app ssowatconf +#================================================= +# REMOVE LOGROTATE CONFIGURATION +#================================================= +ynh_print_info "Removing logrotate configuration" + +# Remove the app-specific logrotate config +if [ -f /etc/logrotate.d/syncthing ] +then + sudo rm /etc/logrotate.d/syncthing +fi + #================================================= # CLOSE A PORT #=================================================