From ea8871840b66e0dd1815ae60ce80f2960fde9291 Mon Sep 17 00:00:00 2001 From: Tagada <36127788+Tagadda@users.noreply.github.com> Date: Sat, 12 Feb 2022 11:57:54 +0100 Subject: [PATCH] fix: only one interface from first default route Fix #53 --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 283eb68..226dfcc 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -15,7 +15,7 @@ fi # dependencies used by the app pkg_dependencies="$pkg_headers wireguard-dkms wireguard" -interface=$(ip route | awk '/default/ { print $5 }') +interface=$(ip route | awk '/default/ { print $5 }' | head) main_domain=$(cat /etc/yunohost/current_host)