1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00

Fix permissions

This commit is contained in:
Josué Tille 2024-09-02 21:30:11 +02:00
parent 90934700a4
commit f00f924348
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -274,7 +274,7 @@ set_permission() {
chmod u=rwx,g=rx,o= "$data_dir" chmod u=rwx,g=rx,o= "$data_dir"
chown "$app":www-data "$data_dir" chown "$app":www-data "$data_dir"
chmod u=rwx,g=rx,o= "$data_dir"/*.rrd || true chmod u=rw,g=r,o= "$data_dir"/*.rrd || true
chown "$app":root "$data_dir"/*.rrd || true chown "$app":root "$data_dir"/*.rrd || true
find "$data_dir"/{reports,usage} \( \! -perm -o= \ find "$data_dir"/{reports,usage} \( \! -perm -o= \
-o \! -user "$app" \ -o \! -user "$app" \