From 0642570974957773e0caed392419da29fc14c224 Mon Sep 17 00:00:00 2001 From: HgO Date: Sun, 19 Nov 2023 15:33:13 +0100 Subject: [PATCH] use yunohost helper instead of cli --- conf/openvpn_90-hotspot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/openvpn_90-hotspot b/conf/openvpn_90-hotspot index f4d5fc5..940148d 100644 --- a/conf/openvpn_90-hotspot +++ b/conf/openvpn_90-hotspot @@ -18,7 +18,7 @@ set_nat() { } if systemctl is-active __SERVICE_NAME__; then - old_gateway_interface=$(yunohost app setting --app=__APP__ --key=gateway_interface) + old_gateway_interface=$(ynh_app_setting_get --app=__APP__ --key=gateway_interface) new_gateway_interface=$(ip route get 1.2.3.4 | awk '{ print $5; }') if [[ -n "$old_gateway_interface" ]] && [[ "$old_gateway_interface" != "$new_gateway_interface" ]] && is_nat_set "$old_gateway_interface"; then