diff --git a/scripts/install b/scripts/install index 1263b71..59043c6 100644 --- a/scripts/install +++ b/scripts/install @@ -144,7 +144,7 @@ ynh_add_nginx_config #================================================= # Create a system user -ynh_system_user_create $app +ynh_system_user_create $app $final_path #================================================= # PHP-FPM CONFIGURATION @@ -170,8 +170,6 @@ ynh_system_user_create $app # ... #================================================= -chown -R $app:$app $final_path - mkdir -p /var/log/$app chown -R $app:$app /var/log/$app @@ -187,6 +185,8 @@ popd #Fix a error in the public page ynh_replace_string "res.writeHead(200)" "res.writeHead(200, {\"content-type\": \"text/html\",})" "$final_path/src/distbin-html/public.ts" +chown -R $app:$app $final_path + #================================================= # SETUP SYSTEMD #=================================================