mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Correct condition syntax in metronome conf_regen hook
This commit is contained in:
parent
ea05562c79
commit
e16b560626
1 changed files with 1 additions and 2 deletions
|
@ -50,9 +50,8 @@ for file in /etc/metronome/conf.d/*; do
|
|||
| sed 's|.cfg.lua||')
|
||||
sanitzed_domain="$(echo $domain | sed 's/\./%2e/g')"
|
||||
[[ $domain_list =~ $domain ]] \
|
||||
|| ($(sudo yunohost service saferemove -s metronome $file | tail -n1) == "True" \
|
||||
|| ([[ $(sudo yunohost service saferemove -s metronome $file | tail -n1) == "True" ]] \
|
||||
&& rm -rf /var/lib/metronome/$sanitzed_domain)
|
||||
|
||||
done
|
||||
|
||||
# Create domain directory
|
||||
|
|
Loading…
Add table
Reference in a new issue