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-07-08 17:07:32 +02:00 committed by GitHub
parent 17f63baa60
commit b77619fe59

View file

@ -70,7 +70,7 @@ ynh_app_setting_set $app port $port
#================================================= #=================================================
# INSTALL NODEJS # INSTALL NODEJS
#================================================= #=================================================
version=6.2.0
ynh_install_nodejs 6.2.0 ynh_install_nodejs 6.2.0
#================================================= #=================================================
@ -122,7 +122,9 @@ sudo chmod 600 $nginxconf
ynh_systemd_config ynh_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 "__SUDO_PATH__" "$nodejs_path" "/etc/systemd/system/$app.service" ynh_replace_string "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service"
cat /etc/systemd/system/$app.service
#================================================= #=================================================
# Install OSjs # Install OSjs