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

Update remove

This commit is contained in:
yalh76 2022-09-01 02:50:19 +02:00
parent a54eb33431
commit 486b41983a

View file

@ -56,22 +56,6 @@ ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=1
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
#=================================================
# UNINSTALL PHANTOMJS
#=================================================
ynh_script_progression --message="Uninstalling PhantomJS..." --weight=1
ynh_install_app_dependencies $pkg_dependencies $build_pkg_dependencies
tmpdir="$(mktemp -d)"
ynh_setup_source --dest_dir="$tmpdir" --source_id="phantomjs"
pushd "$tmpdir"
ynh_exec_warn_less ./configure && make
ynh_exec_warn_less make uninstall
popd
ynh_secure_remove --file="$tmpdir"
ynh_install_app_dependencies $pkg_dependencies
ynh_package_autoremove
#=================================================
# REMOVE DEPENDENCIES
#=================================================
@ -90,6 +74,8 @@ ynh_script_progression --message="Removing various files..." --weight=1
# Remove a cron file
ynh_secure_remove --file="/etc/cron.d/$app"
ynh_secure_remove --file="/usr/local/bin/phantomjs"
#=================================================
# END OF SCRIPT
#=================================================