mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
mdns: Aaaaand we don't want to crash if mdns.aliases doesnt exists obviously
This commit is contained in:
parent
3da2df6e29
commit
69b8603f14
1 changed files with 7 additions and 4 deletions
|
@ -11,10 +11,13 @@ _generate_config() {
|
|||
[[ "$domain" =~ ^[^.]+\.local$ ]] || continue
|
||||
echo " - $domain"
|
||||
done
|
||||
for localalias in $(cat /etc/yunohost/mdns.aliases | grep -v "^ *$")
|
||||
do
|
||||
echo " - $localalias.local"
|
||||
done
|
||||
if [[ -e /etc/yunohot/mdns.aliases ]]
|
||||
then
|
||||
for localalias in $(cat /etc/yunohost/mdns.aliases | grep -v "^ *$")
|
||||
do
|
||||
echo " - $localalias.local"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
do_init_regen() {
|
||||
|
|
Loading…
Add table
Reference in a new issue