From 72bd54d5a4493f8c1f0a430b143ea1b6b1b06bc4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 29 Aug 2020 19:37:05 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 58f0ac5..01469f7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -141,9 +141,9 @@ ynh_use_logrotate --non-append ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 # Set the systemd service settings -ynh_replace_string "__PORT__" "$port" "../conf/systemd.service" -ynh_replace_string "__NODEJS__" "$nodejs_version" "../conf/systemd.service" -ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service" +ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__NODEJS__" --replace_string="$nodejs_version" --target_file="../conf/systemd.service" +ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" # Create a dedicated systemd config ynh_add_systemd_config