Browse Source

Fix avahi allow-interfaces replacement command (#101)

swap
Mayank Chhabra 5 years ago
committed by GitHub
parent
commit
e5ed70f295
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      stage2/03-install-umbrel/01-run.sh
  2. 5
      stage2/08-patch-avahi-daemon-config/01-run

7
stage2/03-install-umbrel/01-run.sh

@ -19,6 +19,13 @@ on_chroot << EOF
pip3 install docker-compose
EOF
# Bind Avahi to eth0,wlan0 interfaces to prevent hostname cycling
# https://github.com/getumbrel/umbrel-os/issues/76
echo "Binding Avahi to eth0 and wlan0 interfaces..."
on_chroot << EOF
sed -i "s/#allow-interfaces=eth0/allow-interfaces=eth0,wlan0/g;" "/etc/avahi/avahi-daemon.conf";
EOF
# Install Umbrel
echo "Installing Umbrel..."
echo

5
stage2/08-patch-avahi-daemon-config/01-run

@ -1,5 +0,0 @@
#!/bin/bash -e
echo "Patching avahi-daemon.conf with fix to bind to specific interfaces"
sed -i "s/#allow-interfaces=eth0/allow-interfaces=eth0,wlan0/g;" "${ROOTFS_DIR}"/etc/avahi/avahi-daemon.conf
Loading…
Cancel
Save