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

hardcode port 53

This commit is contained in:
OniriCorpe 2024-02-08 17:59:18 +01:00
parent c2d0cb750e
commit 96b41b1878
5 changed files with 33 additions and 37 deletions

View file

@ -15,7 +15,7 @@ dns:
bind_hosts:
__IPV4_ADDR__
__IPV6_ADDR__
port: __PORT_ADGUARD__
port: 53
statistics_interval: 1
querylog_enabled: true
querylog_file_enabled: true

View file

@ -5,7 +5,7 @@ description.fr = "Serveur DNS, bloqueur de publicités et trackers"
id = "adguardhome"
name = "AdGuard Home"
version = "0.107.44~ynh1"
version = "0.107.44~ynh2"
maintainers = [ "ddataa" ]

View file

@ -119,7 +119,7 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=1
# Create a dedicated systemd config
ynh_add_systemd_config
yunohost service add $app --description="Ads & trackers blocking DNS server" --needs_exposed_ports $port_adguard
yunohost service add $app --description="Ads & trackers blocking DNS server" --needs_exposed_ports 53
#=================================================
# START SYSTEMD SERVICE

View file

@ -38,7 +38,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable "$app.service" --quiet
yunohost service add $app --description="Ads & trackers blocking DNS server" --needs_exposed_ports $port_adguard
yunohost service add $app --description="Ads & trackers blocking DNS server" --needs_exposed_ports 53
#=================================================
# START SYSTEMD SERVICE

View file

@ -142,10 +142,6 @@ if \"0.0.0.0\" in conf_file[\"dns\"][\"bind_hosts\"]:
conf_file[\"dns\"][\"bind_hosts\"].append(\"$ipv6_addr\")
need_file_update = True
if conf_file[\"dns\"][\"port\"] != $port_adguard:
conf_file[\"dns\"][\"port\"] = $port_adguard
need_file_update = True
if need_file_update:
with open(\"$install_dir/AdGuardHome.yaml\", 'w') as file:
yaml.dump(conf_file, file)