From 6377d8f80691d97225f81d225c9762de158d6fe9 Mon Sep 17 00:00:00 2001 From: SolAZDev Date: Mon, 15 Jan 2024 21:20:47 -0400 Subject: [PATCH] run directory --- conf/motioneye.conf | 2 +- scripts/install | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/motioneye.conf b/conf/motioneye.conf index 96fc428..6de7657 100644 --- a/conf/motioneye.conf +++ b/conf/motioneye.conf @@ -2,7 +2,7 @@ conf_path /var/www/__APP__ # path to the directory where pid files go (must be writable by motionEye) -run_path /run/motioneye +run_path /var/www/__APP__/run # path to the directory where log files go (must be writable by motionEye) log_path __DATA_DIR__/logs diff --git a/scripts/install b/scripts/install index 5a027be..4ceb744 100755 --- a/scripts/install +++ b/scripts/install @@ -64,6 +64,8 @@ popd ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/motioneye.conf" --destination="/var/www/$app/motioneye.conf" +mkdir -p /var/www/$app/run +chmod 644 /var/www/$app/run #================================================= # GENERIC FINALIZATION