Add comments and upgrade some stuff

This commit is contained in:
Maniack Crudelis
2018-06-28 22:05:35 +02:00
parent b64d6c9961
commit 8a2330837b
10 changed files with 212 additions and 67 deletions

View File

@@ -16,7 +16,6 @@ source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
port=$(ynh_app_setting_get $app port)
db_name=$(ynh_app_setting_get $app db_name)
final_path=$(ynh_app_setting_get $app final_path)
@@ -33,6 +32,7 @@ ynh_remove_systemd_config
# REMOVE SERVICE FROM ADMIN PANEL
#=================================================
# Remove a service from the admin panel, added by `yunohost service add`
if yunohost service status | grep -q $app
then
echo "Remove $app service"
@@ -87,7 +87,7 @@ ynh_remove_logrotate
if yunohost firewall list | grep -q "\- $port$"
then
echo "Close port $port"
echo "Close port $port" >&2
yunohost firewall disallow TCP $port 2>&1
fi