mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Merge pull request #54 from Tagadda/patch-2
Only get the first interface listed as default from `ip route`
This commit is contained in:
commit
c8004334d3
1 changed files with 1 additions and 1 deletions
|
@ -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 }')
|
interface=$(ip route | awk '/default/ { print $5 }' | head)
|
||||||
|
|
||||||
main_domain=$(cat /etc/yunohost/current_host)
|
main_domain=$(cat /etc/yunohost/current_host)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue