From 8fa0da9e39614b5f5d14507178773fe772c07068 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 1 Feb 2019 08:54:19 +0100 Subject: [PATCH] Fix chown --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 71de790..8b2be9e 100644 --- a/scripts/install +++ b/scripts/install @@ -173,7 +173,7 @@ ynh_system_user_create "$app" "$final_path" mkdir -p /var/log/$app chown -R $app:$app /var/log/$app -chown -R $app: $final_path +chown -R "$app":"$app" "$final_path" pushd $final_path ynh_use_nodejs sudo -u $app env PATH=$PATH:$nodejs_path npm install hoek@^4.2.1 --save diff --git a/scripts/restore b/scripts/restore index 1b0b634..283baa1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -74,7 +74,7 @@ ynh_system_user_create "$app" "$final_path" #================================================= # Restore permissions on app files -chown -R $app:$app $final_path +chown -R "$app":"$app" "$final_path" mkdir -p /var/log/$app chown -R $app:$app /var/log/$app diff --git a/scripts/upgrade b/scripts/upgrade index 2b6606f..2559edd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -116,7 +116,7 @@ ynh_system_user_create "$app" "$final_path" # ... #================================================= -chown -R $app: $final_path +chown -R "$app":"$app" "$final_path" pushd $final_path ynh_use_nodejs