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

Update remove

This commit is contained in:
Stylix58 2021-03-30 21:07:00 +02:00 committed by GitHub
parent b5978926a0
commit c2600ec8c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,27 +28,6 @@ ynh_script_progression --message="Removing app main directory..." --weight=1
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
#=================================================
# REMOVE LOGROTATE CONFIGURATION
#=================================================
ynh_script_progression --message="Removing logrotate configuration..." --weight=1
# Remove the app-specific logrotate config
ynh_remove_logrotate
#=================================================
# CLOSE A PORT
#=================================================
if yunohost firewall list | grep -q "\- $port$"
then
ynh_script_progression --message="Closing port $port..." --weight=1
ynh_exec_warn_less yunohost firewall disallow TCP $port
fi
# Remove the log files
ynh_secure_remove --file="/var/log/$app/"
#=================================================
# END OF SCRIPT
#=================================================