1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

Update install

This commit is contained in:
frju365 2017-12-28 17:12:59 +01:00 committed by GitHub
parent cd59753687
commit 38d89274b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,13 +150,13 @@ popd
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory
#================================================= #=================================================
ynh_nginx_config ynh_add_nginx_config
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
sudo chown root: $nginxconf sudo chown root: $nginxconf
sudo chmod 600 $nginxconf sudo chmod 600 $nginxconf
cat $nginxconf cat $nginxconf
ynh_systemd_config ynh_add_systemd_config
ynh_replace_string "__NODEJS__" "$nodejs_use_version" "/etc/systemd/system/$app.service" ynh_replace_string "__NODEJS__" "$nodejs_use_version" "/etc/systemd/system/$app.service"
ynh_replace_string "__ENV_PATH__" "$PATH" "/etc/systemd/system/$app.service" ynh_replace_string "__ENV_PATH__" "$PATH" "/etc/systemd/system/$app.service"
ynh_replace_string "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service" ynh_replace_string "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service"