diff --git a/manifest.json b/manifest.json index 9d44a11..44220f3 100755 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "description": { "en": "Federated blogging application" }, - "version": "0.2.0~ynh1", + "version": "0.2.0~ynh2", "url": "https://baptiste.gelez.xyz/", "license": "AGPL-3.0-only", "maintainer": { diff --git a/scripts/upgrade b/scripts/upgrade index 10f049d..4a25c82 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,6 +118,16 @@ ynh_system_user_create "$app" "$final_path" # ... #================================================= +#================================================= +# CLOSE A PORT +#================================================= + +if yunohost firewall list | grep -q "\- $port$" +then + echo "Close port $port" >&2 + yunohost firewall disallow TCP $port 2>&1 +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK PLUME SOURCE #=================================================