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:
parent
0e7ad843c2
commit
570b4b0c49
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue