mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
add a message to guide the user if the machine doesn't have any public IPs
This commit is contained in:
parent
ea669f0f36
commit
4613c98a1a
1 changed files with 10 additions and 1 deletions
|
@ -102,7 +102,16 @@ update_agh_ip_config(){
|
||||||
# used to update the IP adresses in the AGHconfig file
|
# used to update the IP adresses in the AGHconfig file
|
||||||
|
|
||||||
if [ -z "${ipv4_addr:-}" ] && [ -z "${ipv6_addr:-}" ]; then
|
if [ -z "${ipv4_addr:-}" ] && [ -z "${ipv6_addr:-}" ]; then
|
||||||
|
if [ -z "${expose_port_53:-}" ] || [[ "$expose_port_53" = "false" ]]; then
|
||||||
|
# if the variable 'expose_port_53' is unset or false, maybe the machine
|
||||||
|
# doesn't have any private IP? User guidance is relevant...
|
||||||
|
ynh_die --message="At leat one IP adress is required to run AdGuard Home. Please report this error.
|
||||||
|
(If you're using a VPS that haven't any private IPs, you need to run the command \`yunohost app setting adguardhome expose_port_53 -v true\`
|
||||||
|
to activate public IP binding and unlock your situation, then re-run the upgrade process. Sorry about that!)"
|
||||||
|
else
|
||||||
|
# else, do not show the message under parenthesis, because it's irrelevant
|
||||||
ynh_die --message="At leat one IP adress is required to run AdGuard Home. Please report this error."
|
ynh_die --message="At leat one IP adress is required to run AdGuard Home. Please report this error."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# use python's yaml and open the AGH config file
|
# use python's yaml and open the AGH config file
|
||||||
|
|
Loading…
Add table
Reference in a new issue