Do avahi-daemon
This commit is contained in:
parent
45ad633d1c
commit
703f2bfa9e
3 changed files with 15 additions and 3 deletions
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
RUN "sudo apt install avahi-daemon"
|
|
|
@ -61,6 +61,13 @@ queue_apt_install() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
queue_firewall_rule() {
|
||||||
|
local rule="$*";
|
||||||
|
subtask_begin "[firewall] Queuing firewall rule ${rule}";
|
||||||
|
echo "${rule}" >>"${temp_dir}/ufw-rules.txt";
|
||||||
|
subtask_end "$?";
|
||||||
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
|
||||||
|
|
8
src/steps-preinstall/50-avahi-daemon.job
Executable file
8
src/steps-preinstall/50-avahi-daemon.job
Executable 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 "$?";
|
Loading…
Reference in a new issue