From 4889aa1c30089d5ce0be93c89de835b17a6d92f4 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 3 Mar 2022 18:55:19 +0100 Subject: [PATCH] Fix interface detection Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 226dfcc..64cf3e4 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 }' | head) +interface=$(ip route | awk '/default/ { print $5 }' | head -n1) main_domain=$(cat /etc/yunohost/current_host)