1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

Fix User Path

This commit is contained in:
Yalh 2019-01-29 07:43:46 +01:00
parent 3293dada90
commit fa42540406

View file

@ -144,7 +144,7 @@ ynh_add_nginx_config
#================================================= #=================================================
# Create a system user # Create a system user
ynh_system_user_create $app ynh_system_user_create $app $final_path
#================================================= #=================================================
# PHP-FPM CONFIGURATION # PHP-FPM CONFIGURATION
@ -170,8 +170,6 @@ ynh_system_user_create $app
# ... # ...
#================================================= #=================================================
chown -R $app:$app $final_path
mkdir -p /var/log/$app mkdir -p /var/log/$app
chown -R $app:$app /var/log/$app chown -R $app:$app /var/log/$app
@ -187,6 +185,8 @@ popd
#Fix a error in the public page #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" 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 # SETUP SYSTEMD
#================================================= #=================================================