mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
fix unbound var
This commit is contained in:
parent
f47ae33091
commit
fced44bdb1
1 changed files with 4 additions and 2 deletions
|
@ -29,6 +29,7 @@ ynh_systemd_action --service_name="$app" --action="stop"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
ynh_app_setting_get --app="$app" --key=dns_over_https
|
||||
if [ -n "$dns_over_https" ] && [ "$dns_over_https" == "1" ]; then
|
||||
dns_over_https="true"
|
||||
ynh_app_setting_set --app="$app" --key=dns_over_https --value=$dns_over_https
|
||||
|
@ -43,19 +44,20 @@ elif [ -z "$dns_over_https" ] || [ "$dns_over_https" == "0" ]; then
|
|||
ynh_exec_warn_less yunohost firewall reload
|
||||
fi
|
||||
|
||||
ynh_app_setting_get --app="$app" --key=open_port_53
|
||||
if [ -n "$open_port_53" ] && [ "$open_port_53" == "1" ]; then
|
||||
open_port_53="true"
|
||||
ynh_app_setting_set --app="$app" --key=open_port_53 --value="$open_port_53"
|
||||
# no need to open th port, as it were opened at the 'Provisioning ports' step
|
||||
elif [ -z "$open_port_53" ] || [ "$open_port_53" == "0" ]; then
|
||||
open_port_53="false"
|
||||
ynh_app_setting_set --app="$app" --key=open_port_53 --value="$open_port_53"
|
||||
# if open_port_53 is false, we need to close port,
|
||||
# as it were opened at the 'Provisioning ports' step
|
||||
ynh_exec_warn_less yunohost firewall disallow Both "$port_dns_over_http"
|
||||
ynh_exec_warn_less yunohost firewall reload
|
||||
fi
|
||||
|
||||
ynh_app_setting_set --app="$app" --key=open_port_53 --value="$open_port_53"
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue