diff --git a/scripts/install b/scripts/install index f700a20..4599d3a 100644 --- a/scripts/install +++ b/scripts/install @@ -170,6 +170,8 @@ ynh_system_user_create $app $final_path # ... #================================================= +chown -R $app: $final_path + mkdir -p /var/log/$app chown -R $app:$app /var/log/$app @@ -182,8 +184,6 @@ sudo -u $app env PATH=$PATH:$nodejs_path npm install sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix popd -chown -R $app:$app $final_path - #================================================= # SETUP SYSTEMD #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5022034..7522e2f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -116,6 +116,8 @@ ynh_system_user_create $app # ... #================================================= +chown -R $app: $final_path + pushd $final_path ynh_use_nodejs sudo -u $app env PATH=$PATH:$nodejs_path npm install hoek@^4.2.1 --save