From 890bebf65ff72278002659b2506cc30e982eba97 Mon Sep 17 00:00:00 2001 From: SolAZDev Date: Fri, 8 Sep 2023 16:59:36 -0400 Subject: [PATCH] following motionEye's base (664 + motion:motion) --- manifest.toml | 2 +- scripts/install | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/manifest.toml b/manifest.toml index 454d8d7..32a1b13 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "motionEye" description.en = "motionEye is a web frontend for the motion daemon, written in Python." description.fr = "motionEye is a web frontend for the motion daemon, written in Python" -version = "0.2023.07.31" +version = "0.2023.07.31~ynh0" maintainers = ["solazdev"] diff --git a/scripts/install b/scripts/install index dd26f8d..be72e1c 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 -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" +chown motion:motion "/etc/motioneye/" +chown motion:motion "/etc/motioneye/motioneye.conf" +chown motion:motion "/var/lib/motioneye" +chmod 664 "/etc/motioneye/motioneye.conf" +chmod 664 "/etc/motioneye/" +chmod 664 "/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)