From 37f15d9de29d2e13f7db6b972506385622cd0e26 Mon Sep 17 00:00:00 2001 From: frju365 Date: Fri, 30 Jun 2017 00:20:28 +0200 Subject: [PATCH] Update install --- scripts/install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index e71c84a..33f3778 100644 --- a/scripts/install +++ b/scripts/install @@ -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