mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
32 lines
428 B
Bash
Executable file
32 lines
428 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
do_pre_regen() {
|
|
pending_dir=$1
|
|
|
|
cd /usr/share/yunohost/templates/avahi-daemon
|
|
|
|
install -D avahi-daemon.conf "${pending_dir}/etc/avahi/avahi-daemon.conf"
|
|
}
|
|
|
|
do_post_regen() {
|
|
sudo service avahi-daemon restart
|
|
}
|
|
|
|
FORCE=$2
|
|
|
|
case "$1" in
|
|
pre)
|
|
do_pre_regen $3
|
|
;;
|
|
post)
|
|
do_post_regen
|
|
;;
|
|
*)
|
|
echo "hook called with unknown argument \`$status'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|