1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jenkins_ynh.git synced 2024-09-03 19:26:18 +02:00

Fix removal

This commit is contained in:
yalh76 2021-03-04 00:37:08 +01:00
parent 6b01348b0d
commit b014e08e4f

View file

@ -44,8 +44,8 @@ ynh_systemd_action --service_name=$app --action="stop" --line_match="Stopped LSB
#=================================================
ynh_script_progression --message="Removing dependencies..." --weight=20
ynh_package_autopurge $app
# Remove metapackage and its dependencies
ynh_package_autopurge $app
ynh_remove_app_dependencies
#=================================================
@ -64,6 +64,19 @@ ynh_script_progression --message="Removing NGINX web server configuration..." --
# Remove the dedicated NGINX config
ynh_remove_nginx_config
#=================================================
# SPECIFIC REMOVE
#=================================================
# REMOVE VARIOUS FILES
#=================================================
ynh_script_progression --message="Removing various files..."
# Remove a directory securely
ynh_secure_remove --file="/etc/default/jenkins"
# Remove the log files
ynh_secure_remove --file="/var/log/$app"
#=================================================
# END OF SCRIPT
#=================================================