1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

Merge pull request #9 from YunoHost-Apps/testing

Fix port opening
This commit is contained in:
yalh76 2019-01-26 22:10:11 +01:00 committed by GitHub
commit 08d52a16fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -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": {

View file

@ -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
#=================================================