1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/osjs_ynh.git synced 2024-09-03 19:56:11 +02:00

Update install

This commit is contained in:
frju365 2018-10-27 23:31:33 +02:00 committed by GitHub
parent 9268a09e8f
commit 912f8fd321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,6 @@ sudo chown admin -R $install_log
#=================================================
pushd $final_path
ynh_replace_string "port: 8000" "port: $port" "$final_path/src/server/config.js"
ynh_use_nodejs
npm install >> $install_log 2>&1
NODE_ENV=production npm run build >> $install_log 2>&1
@ -134,6 +133,7 @@ popd
# Set right on directory and configure init script
#=================================================
ynh_replace_string "8000" "$port" "$final_path/src/server/config.js"
chown $app:$app $final_path -R
chmod 755 $final_path -R
chown $app:$app /var/log/$app/$app.log