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 2017-06-30 00:20:28 +02:00 committed by GitHub
parent 1bdf9123e4
commit 37f15d9de2

View file

@ -114,13 +114,15 @@ sudo chmod 755 $final_path -R
#=================================================
# Modify Nginx configuration file and copy it to Nginx conf directory
#=================================================
ynh_replace_string "__PORT__" "$port" "../conf/nginx.conf"
ynh_replace_string "__PORT__" "$port" "../conf/osjs.service"
ynh_replace_string "__FINALPATH__" "$final_path" "../conf/osjs.service"
ynh_nginx_config
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
sudo cp ../conf/nginx.conf $nginxconf
sudo chown root: $nginxconf
sudo chmod 600 $nginxconf
ynh_systemd_config
ynh_replace_string "__NODEJS__" "$nodejs_use_version" "/etc/systemd/system/$app.service"
ynh_replace_string "__ENV_PATH__" "$PATH" "/etc/systemd/system/$app.service"
ynh
#=================================================
# Install OSjs