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

Fix $app own before doing install

This commit is contained in:
yalh76 2019-01-30 19:07:48 +01:00
parent 5ddf616085
commit cafc1e5cec
2 changed files with 4 additions and 2 deletions

View file

@ -170,6 +170,8 @@ ynh_system_user_create $app $final_path
# ... # ...
#================================================= #=================================================
chown -R $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
@ -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 sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix
popd popd
chown -R $app:$app $final_path
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD
#================================================= #=================================================

View file

@ -116,6 +116,8 @@ ynh_system_user_create $app
# ... # ...
#================================================= #=================================================
chown -R $app: $final_path
pushd $final_path pushd $final_path
ynh_use_nodejs ynh_use_nodejs
sudo -u $app env PATH=$PATH:$nodejs_path npm install hoek@^4.2.1 --save sudo -u $app env PATH=$PATH:$nodejs_path npm install hoek@^4.2.1 --save