1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

Fix interface detection

Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com>
This commit is contained in:
tituspijean 2022-03-03 18:55:19 +01:00 committed by GitHub
parent aaad102c96
commit 4889aa1c30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ fi
# dependencies used by the app # dependencies used by the app
pkg_dependencies="$pkg_headers wireguard-dkms wireguard" 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) main_domain=$(cat /etc/yunohost/current_host)