From 08f4c594c62755e4b6151b1673a4985c1dbfb11c Mon Sep 17 00:00:00 2001 From: SolAZDev Date: Wed, 6 Sep 2023 13:24:48 -0400 Subject: [PATCH] chown+777 (this does not feel right) --- scripts/install | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 658c8e3..dd26f8d 100755 --- a/scripts/install +++ b/scripts/install @@ -136,12 +136,12 @@ ynh_add_config --template="../conf/motioneye.conf" --destination="/etc/motioneye # FIXME: this should be handled by the core in the future # You may need to use chmod 600 instead of 400, # for example if the app is expected to be able to modify its own config -chmod 666 "/etc/motioneye/motioneye.conf" -chmod 666 "/etc/motioneye/" -chmod 666 "/var/lib/motioneye" -# chown $app:www-data "/etc/motioneye/" -# chown $app:www-data "/etc/motioneye/motioneye.conf" -# chown $app:www-data "/var/lib/motioneye" +chown $app:www-data "/etc/motioneye/" +chown $app:www-data "/etc/motioneye/motioneye.conf" +chown $app:www-data "/var/lib/motioneye" +chmod 777 "/etc/motioneye/motioneye.conf" +chmod 777 "/etc/motioneye/" +chmod 777 "/var/lib/motioneye" ### For more complex cases where you want to replace stuff using regexes, ### you shoud rely on ynh_replace_string (which is basically a wrapper for sed)