mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
add ynh_print_info
This commit is contained in:
parent
c569b80b4a
commit
7415cc436e
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,8 @@ set__expose_port_53() {
|
|||
ynh_print_info --message="Updating the AGH config file..."
|
||||
update_agh_ip_config
|
||||
|
||||
# declare needs_exposed_ports according to real user need
|
||||
ynh_print_info --message="Updating the YunoHost service for AdGuard Home..."
|
||||
if [ "$dns_over_https" == "true" ] && [ "$expose_port_53" == "true" ]; then
|
||||
yunohost service add "$app" --description="Ads & trackers blocking DNS server" --needs_exposed_ports "53" "$port_dns_over_http" "$port_dns_over_quic"
|
||||
elif [ "$dns_over_https" == "true" ]; then
|
||||
|
@ -71,6 +73,7 @@ set__dns_over_https() {
|
|||
fi
|
||||
|
||||
# declare needs_exposed_ports according to real user need
|
||||
ynh_print_info --message="Updating the YunoHost service for AdGuard Home..."
|
||||
if [ "$dns_over_https" == "true" ] && [ "$expose_port_53" == "true" ]; then
|
||||
yunohost service add "$app" --description="Ads & trackers blocking DNS server" --needs_exposed_ports "53" "$port_dns_over_http" "$port_dns_over_quic"
|
||||
elif [ "$dns_over_https" == "true" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue