mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Be less restrictive on domain name in metronome conf_regen hook
This commit is contained in:
parent
d851237dc2
commit
bade8c5649
1 changed files with 1 additions and 1 deletions
|
@ -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 ]] \
|
||||
|
|
Loading…
Add table
Reference in a new issue