Do avahi-daemon

This commit is contained in:
Starbeamrainbowlabs 2021-11-26 21:56:08 +00:00
parent 45ad633d1c
commit 703f2bfa9e
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 15 additions and 3 deletions

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
RUN "sudo apt install avahi-daemon"

View file

@ -61,6 +61,13 @@ queue_apt_install() {
done
}
queue_firewall_rule() {
local rule="$*";
subtask_begin "[firewall] Queuing firewall rule ${rule}";
echo "${rule}" >>"${temp_dir}/ufw-rules.txt";
subtask_end "$?";
}
###############################################################################

View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
task_begin "Configuring avahi-daemon";
queue_apt_install "avahi-daemon";
queue_firewall_rule allow 5353/udp comment mdns-avahi-daemon
task_end "$?";