mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
use yunohost helper instead of cli
This commit is contained in:
parent
6ef195c867
commit
0642570974
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue