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

rename "update_config()" into more explicit "update_agh_config()"

This commit is contained in:
OniriCorpe 2023-12-27 22:51:09 +01:00
parent b913775894
commit aeab6379ab
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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"

View file

@ -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.

View file

@ -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"