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:
Matthew DeAbreu 2019-11-20 09:52:01 -08:00 committed by GitHub
parent 16f6d500a3
commit 7c09982d3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ]] \