1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00
This commit is contained in:
OniriCorpe 2024-01-01 04:24:37 +01:00
parent b994dd48d1
commit 10e581cb6e

View file

@ -36,11 +36,11 @@ set__expose_port_53() {
ynh_print_info --message="Updating the AGH config file..."
update_agh_ip_config
if [[ $dns_over_https == 0 ]] && [[ $expose_port_53 == 0 ]]; then
if [ "$dns_over_https" == "true" ] && [ "$expose_port_53" == "true" ]; then
yunohost service add "$app" --description="Ads & trackers blocking DNS server" --needs_exposed_ports "53" "$port_dns_over_http" "$port_dns_over_quic"
elif [[ $dns_over_https == 0 ]]; then
elif [ "$dns_over_https" == "true" ]; then
yunohost service add "$app" --description="Ads & trackers blocking DNS server" --needs_exposed_ports "$port_dns_over_http" "$port_dns_over_quic"
elif [[ $expose_port_53 == 0 ]]; then
elif [ "$expose_port_53" == "true" ]; then
yunohost service add "$app" --description="Ads & trackers blocking DNS server" --needs_exposed_ports "53"
else
yunohost service add "$app" --description="Ads & trackers blocking DNS server"