1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00

fix unbound variable

This commit is contained in:
OniriCorpe 2024-01-03 23:23:30 +01:00
parent 2a57997e29
commit 75c6179a61

View file

@ -29,7 +29,7 @@ ynh_systemd_action --service_name="$app" --action="stop"
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ -z "${expose_port_53:-}" ] && [ "${expose_port_53:-}" = true ]; then
if [ -z "${expose_port_53:-}" ] || [ "${expose_port_53:-}" = true ]; then
expose_port_53="true"
ynh_app_setting_set --app="$app" --key=expose_port_53 --value="$expose_port_53"
elif [ -n "${expose_port_53:-}" ] || [ "${expose_port_53:-}" = false ]; then