1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moodle_ynh.git synced 2024-09-03 19:46:23 +02:00

Update remove

This commit is contained in:
liberodark 2019-03-12 23:22:55 +01:00 committed by GitHub
parent 0e7ad843c2
commit 570b4b0c49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,6 @@ port=$(ynh_app_setting_get $app port)
db_name=$(ynh_app_setting_get $app psql_db)
db_user=$db_name
final_path=$(ynh_app_setting_get $app final_path)
back_path=/opt/pia-back
#=================================================
# STANDARD REMOVE
@ -68,7 +67,6 @@ ynh_print_info "Removing app main directory"
# Remove the app directory securely
ynh_secure_remove "$final_path"
ynh_secure_remove "$back_path"
#=================================================
# REMOVE NGINX CONFIGURATION
@ -94,16 +92,6 @@ ynh_print_info "Removing logrotate configuration"
# Remove the app-specific logrotate config
ynh_remove_logrotate
#=================================================
# CLOSE A PORT
#=================================================
if yunohost firewall list | grep -q "\- $port$"
then
ynh_print_info "Closing port $port"
ynh_exec_warn_less yunohost firewall disallow TCP $port
fi
#=================================================
# SPECIFIC REMOVE
#=================================================