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:
parent
5ddf616085
commit
cafc1e5cec
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue