From 0239f794905be14078224c0b8c015c1941ea1ba0 Mon Sep 17 00:00:00 2001 From: Brian Douglass Date: Tue, 16 Jul 2019 00:24:07 -0400 Subject: [PATCH] Ensure the enigma directory exists befor chowning it --- scripts/install | 1 + scripts/restore | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index df8a260..c793010 100644 --- a/scripts/install +++ b/scripts/install @@ -211,6 +211,7 @@ ynh_store_file_checksum --file="$rc_conf" # Set permissions to app files chown -R root: "$final_path" +mkdir -p "$final_path/plugins/enigma/home" chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home} #================================================= diff --git a/scripts/restore b/scripts/restore index ac1d5e3..7fa57b8 100644 --- a/scripts/restore +++ b/scripts/restore @@ -67,6 +67,7 @@ ynh_system_user_create --username=$app # Restore permissions on app files chown -R root: "$final_path" +mkdir -p "$final_path/plugins/enigma/home" chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home} #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index b993aed..2d8d384 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -262,6 +262,7 @@ fi # Set permissions to app files chown -R root: "$final_path" +mkdir -p "$final_path/plugins/enigma/home" chown -R $app: "$final_path/"{temp,logs,plugins/enigma/home} #=================================================