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:
parent
aaad102c96
commit
4889aa1c30
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue