diff --git a/scripts/install b/scripts/install index dbcd2ec..7a8b325 100644 --- a/scripts/install +++ b/scripts/install @@ -123,9 +123,8 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Configuring a systemd service..." --time --weight=1 -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 "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service" +ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service" ynh_add_systemd_config