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

uncapitalize dot & doq vars

This commit is contained in:
OniriCorpe 2023-12-26 16:47:09 +01:00
parent 0aa41375cb
commit 41f9785fba
2 changed files with 14 additions and 14 deletions

View file

@ -15,18 +15,18 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Storing installation settings..." --weight=2
# DNS over TLS
adguard_DoT_port=853
ynh_app_setting_set --app="$app" --key=adguard_DoT_port --value=$adguard_DoT_port
adguard_dot_port=853
ynh_app_setting_set --app="$app" --key=adguard_dot_port --value=$adguard_dot_port
# DNS over QUIC
adguard_DoQ_port=784
ynh_app_setting_set --app="$app" --key=adguard_DoQ_port --value=$adguard_DoQ_port
adguard_doq_port=784
ynh_app_setting_set --app="$app" --key=adguard_doq_port --value=$adguard_doq_port
if [ "$dns_over_https" == "1" ];
then
dns_over_https="true"
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $adguard_DoT_port
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $adguard_DoT_port
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $adguard_DoQ_port
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $adguard_dot_port
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $adguard_dot_port
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $adguard_doq_port
else
dns_over_https="false"
fi

View file

@ -34,14 +34,14 @@ then
dns_over_https="true"
ynh_app_setting_set --app="$app" --key=dns_over_https --value=$dns_over_https
# DNS over TLS
adguard_DoT_port=853
ynh_app_setting_set --app=$app --key=adguard_DoT_port --value=$adguard_DoT_port
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $adguard_DoT_port
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $adguard_DoT_port
adguard_dot_port=853
ynh_app_setting_set --app=$app --key=adguard_dot_port --value=$adguard_dot_port
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $adguard_dot_port
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $adguard_dot_port
# DNS over QUIC
adguard_DoQ_port=784
ynh_app_setting_set --app="$app" --key=adguard_DoQ_port --value=$adguard_DoQ_port
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $adguard_DoQ_port
adguard_doq_port=784
ynh_app_setting_set --app="$app" --key=adguard_doq_port --value=$adguard_doq_port
ynh_exec_warn_less yunohost firewall allow --no-upnp UDP $adguard_doq_port
elif [ -z "$dns_over_https" ] || [ "$dns_over_https" == "0" ];
then
dns_over_https="false"