diff --git a/scripts/remove b/scripts/remove index 3867c62..ba1f9ff 100644 --- a/scripts/remove +++ b/scripts/remove @@ -51,14 +51,6 @@ ynh_remove_systemd_config --service="$app-worker" --log="/var/log/$app/$app-work ynh_secure_remove --file="/etc/systemd/system/$app.target" -#================================================= -# REMOVE APP MAIN DIR -#================================================= -ynh_script_progression --message="Removing app main directory..." --weight=1 - -# Remove the app directory securely -ynh_secure_remove --file="$install_dir" - #================================================= # REMOVE NGINX CONFIGURATION #================================================= @@ -67,6 +59,17 @@ ynh_script_progression --message="Removing NGINX web server configuration..." -- # Remove the dedicated NGINX config ynh_remove_nginx_config +#================================================= +# REMOVE LOGS +#================================================= +ynh_script_progression --message="Removing logs..." --weight=5 + +ynh_remove_logrotate + +# Remove the log files +ynh_secure_remove --file="/var/log/$app" + + #================================================= # END OF SCRIPT #=================================================