mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ensure metronome owns domain dir
When adding new domains to Yunohost a directory for each newly added domain is created in `/var/lib/metronome` unfortunately since the directory is created with `sudo mkdir` that means `root:root` owns the directory. Metronome will now fail to write to the directory.
This commit is contained in:
parent
3c84429258
commit
031f8a6e38
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ do_post_regen() {
|
|||
# create metronome directories for domains
|
||||
for domain in $domain_list; do
|
||||
sudo mkdir -p "/var/lib/metronome/${domain//./%2e}/pep"
|
||||
sudo chown -R metronome: /var/lib/metronome/${domain//./%2e}/
|
||||
done
|
||||
|
||||
[[ -z "$regen_conf_files" ]] \
|
||||
|
|
Loading…
Add table
Reference in a new issue