2019-08-25 03:40:54 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
force=${2:-0} # 0/1 --force argument
|
|
|
|
dryrun=${3:-0} # 0/1 --dry-run argument
|
|
|
|
pending_conf=$4 # Path of the pending conf file
|
|
|
|
|
|
|
|
do_pre_regen() {
|
|
|
|
# Add specific domain metronome conf
|
2019-08-25 15:45:36 +02:00
|
|
|
metronome_conf_dir="/home/yunohost.conf/pending/metronome/etc/metronome/conf.d"
|
2019-08-25 18:40:23 +02:00
|
|
|
cp -af "/usr/share/yunohost/templates/jitsi/." "$metronome_conf_dir/"
|
2019-08-25 03:40:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_post_regen() {
|
2019-08-25 15:45:36 +02:00
|
|
|
regen_conf_files=$1
|
2019-08-25 03:40:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
pre)
|
|
|
|
do_pre_regen
|
|
|
|
;;
|
|
|
|
post)
|
|
|
|
do_post_regen
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Hook called with unknown argument \`$1'" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|