From 173e6447efbcd2f735132d8785a10dff0342736c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 13 Apr 2019 17:27:22 +0200 Subject: [PATCH] reorder REMOVE LOGROTATE CONFIGURATION --- scripts/remove | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 #=================================================