[fix] Be less restrictive on domain name in metronome conf_regen hook

This commit is contained in:
Jérôme Lebleu 2016-04-16 16:46:22 +02:00
parent d851237dc2
commit bade8c5649

View file

@ -30,7 +30,7 @@ do_pre_regen() {
# remove old domain conf files
conf_files=$(ls -1 /etc/metronome/conf.d \
| awk '/^[a-z].*\.cfg\.lua$/ { print $1 }')
| awk '/^[^\.]+\.[^\.]+.*\.cfg\.lua$/ { print $1 }')
for file in $conf_files; do
domain=${file%.cfg.lua}
[[ $domain_list =~ $domain ]] \