mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] access to /var/lib/metronome/ needs sudo permissions
During a domain removal, I hit this error : 2016-02-25 11:52:31,702 INFO yunohost.hook <lambda> - [4615.1] + rm -rf /var/lib/metronome/{{domain}} 2016-02-25 11:52:31,705 WARNING yunohost.hook <lambda> - [4615.1] rm: cannot remove ‘/var/lib/metronome/{{domain}}’: Permission denied 2016-02-25 11:52:31,803 ERROR yunohost.hook hook_callback - [4615.1] Script execution failed
This commit is contained in:
parent
b27aa33192
commit
e93b036830
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ for file in /etc/metronome/conf.d/*; do
|
|||
sanitzed_domain="$(echo $domain | sed 's/\./%2e/g')"
|
||||
[[ $domain_list =~ $domain ]] \
|
||||
|| ([[ $(sudo yunohost service saferemove -s metronome $file | tail -n1) == "True" ]] \
|
||||
&& rm -rf /var/lib/metronome/$sanitzed_domain)
|
||||
&& sudo rm -rf /var/lib/metronome/$sanitzed_domain)
|
||||
done
|
||||
|
||||
# Create domain directory
|
||||
|
|
Loading…
Add table
Reference in a new issue