mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Try to fix the return line bug in dnsmasq conf
This commit is contained in:
parent
f34f9e5fc3
commit
31dfb19a02
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ do_pre_regen() {
|
||||||
ynh_validate_ip4 "$ipv4" || ipv4='127.0.0.1'
|
ynh_validate_ip4 "$ipv4" || ipv4='127.0.0.1'
|
||||||
ipv6=$(curl -s -6 https://ip6.yunohost.org 2>/dev/null || true)
|
ipv6=$(curl -s -6 https://ip6.yunohost.org 2>/dev/null || true)
|
||||||
ynh_validate_ip6 "$ipv6" || ipv6=''
|
ynh_validate_ip6 "$ipv6" || ipv6=''
|
||||||
interfaces="$(ls -m /sys/class/net | sed s/,//g)"
|
interfaces="$(ip -j addr show | jq -r '[.[].ifname]|join(" ")')"
|
||||||
wireless_interfaces="lo"
|
wireless_interfaces="lo"
|
||||||
for dev in $(ls /sys/class/net); do
|
for dev in $(ls /sys/class/net); do
|
||||||
if [ -d "/sys/class/net/$dev/wireless" ]; then
|
if [ -d "/sys/class/net/$dev/wireless" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue