From aeab6379ab1955cf212150c54f080e8e8d19975b Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Wed, 27 Dec 2023 22:51:09 +0100 Subject: [PATCH] rename "update_config()" into more explicit "update_agh_config()" --- scripts/_common.sh | 2 +- scripts/config | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index c00ce42..d34d781 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -76,7 +76,7 @@ process_ips(){ echo "$ips" } -update_config(){ +update_agh_config(){ # used to update the IP adresses in the AGHconfig file python3 -c "import yaml diff --git a/scripts/config b/scripts/config index a2d552d..35e4c17 100644 --- a/scripts/config +++ b/scripts/config @@ -40,7 +40,7 @@ set__open_port_53() { ipv6_addr=$(process_ips "$(ip -6 route get ::1.2.3.4 2> /dev/null | head -n1)") # update the IP adresses in the AGH config file - update_config + update_agh_config # save the new setting ynh_app_setting_set "$app" --key=open_port_53 --value="$open_port_53" diff --git a/scripts/restore b/scripts/restore index 81b98ba..a490f9c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -54,7 +54,7 @@ ipv4_addr=$(process_ips "$(ip -4 route get 1.2.3.4 2> /dev/null | head -n1 | hea ipv6_addr=$(process_ips "$(ip -6 route get ::1.2.3.4 2> /dev/null | head -n1)") # update the IP adresses in the AGH config file -update_config +update_agh_config # this will be treated as a security issue. diff --git a/scripts/upgrade b/scripts/upgrade index 4532929..62c6c2e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -136,7 +136,7 @@ ipv4_addr=$(process_ips "$(ip -4 route get 1.2.3.4 2> /dev/null | head -n1 | hea ipv6_addr=$(process_ips "$(ip -6 route get ::1.2.3.4 2> /dev/null | head -n1)") # update the IP adresses in the AGH config file -update_config +update_agh_config chmod 600 "$install_dir/AdGuardHome.yaml" chown -R "$app:$app" "$install_dir/AdGuardHome.yaml"