mirror of
https://github.com/YunoHost-Apps/blogotext_ynh.git
synced 2024-09-03 18:15:52 +02:00
commit
7623d71a79
4 changed files with 19 additions and 9 deletions
|
@ -20,7 +20,8 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
#upgrade=1 from_commit=CommitHash
|
#3.7.6~ynh1
|
||||||
|
upgrade=1 from_commit=e49200ad7f98acba70737dc7db314c51a2a07802
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
incorrect_path=1
|
incorrect_path=1
|
||||||
|
@ -43,7 +44,7 @@
|
||||||
Email=
|
Email=
|
||||||
Notification=none
|
Notification=none
|
||||||
;;; Upgrade options
|
;;; Upgrade options
|
||||||
; commit=CommitHash
|
; commit=e49200ad7f98acba70737dc7db314c51a2a07802
|
||||||
name=Name and date of the commit.
|
name=3.7.6~ynh1(11oct2020)
|
||||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&
|
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=password1234&port=666&
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Lightweight Blog-Engine.",
|
"en": "Lightweight Blog-Engine.",
|
||||||
"fr": "Un moteur de blog léger."
|
"fr": "Un moteur de blog léger."
|
||||||
},
|
},
|
||||||
"version": "3.7.6~ynh1",
|
"version": "3.7.6~ynh2",
|
||||||
"url": "https://blogotext.org/",
|
"url": "https://blogotext.org/",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -83,10 +83,10 @@ ynh_print_info "Configuring firewall..."
|
||||||
### - Remove the section "CLOSE A PORT" in the remove script
|
### - Remove the section "CLOSE A PORT" in the remove script
|
||||||
|
|
||||||
# Find a free port
|
# Find a free port
|
||||||
port=$(ynh_find_port 8095)
|
#port=$(ynh_find_port 8095)
|
||||||
# Open this port
|
# Open this port
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
#ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
||||||
ynh_app_setting_set $app port $port
|
#ynh_app_setting_set $app port $port
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
|
|
|
@ -17,7 +17,7 @@ ynh_print_info "Loading installation settings..."
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
domain=$(ynh_app_setting_get $app domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
port=$(ynh_app_setting_get $app port)
|
#port=$(ynh_app_setting_get $app port)
|
||||||
db_name=$(ynh_app_setting_get $app db_name)
|
db_name=$(ynh_app_setting_get $app db_name)
|
||||||
db_user=$db_name
|
db_user=$db_name
|
||||||
final_path=$(ynh_app_setting_get $app final_path)
|
final_path=$(ynh_app_setting_get $app final_path)
|
||||||
|
@ -95,6 +95,15 @@ ynh_print_info "Removing logrotate configuration"
|
||||||
# CLOSE A PORT
|
# 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
|
||||||
|
|
||||||
|
# close port if it was previously opened
|
||||||
|
# https://github.com/YunoHost-Apps/blogotext_ynh/pull/13
|
||||||
|
port=$(ynh_app_setting_get $app port)
|
||||||
if yunohost firewall list | grep -q "\- $port$"
|
if yunohost firewall list | grep -q "\- $port$"
|
||||||
then
|
then
|
||||||
ynh_print_info "Closing port $port"
|
ynh_print_info "Closing port $port"
|
||||||
|
|
Loading…
Reference in a new issue