From de7a77364cbe5c4e890930b8b2c41c3547902bce Mon Sep 17 00:00:00 2001 From: tytan652 Date: Tue, 29 Dec 2020 20:10:01 +0100 Subject: [PATCH] refactor(level 3): WG service set in upgrade --- scripts/upgrade | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3e925e8..9c37805 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,10 +118,7 @@ cp ../conf/wireguard.path /etc/systemd/system/wireguard.path systemctl enable wireguard.path # Create a dedicated systemd config for restarting WireGuard -cp ../conf/wireguard.service /etc/systemd/system/wireguard.service -ynh_replace_string --match_string="__PORT_WG__" --replace_string="$port_wg" --target_file="/etc/systemd/system/wireguard.service" -systemctl enable wireguard.service -#ynh_exec_fully_quiet ynh_add_systemd_config --service=wireguard --template=wireguard.service --others_var="port_wg" +ynh_add_systemd_config --service=wireguard --template=wireguard.service --others_var="port_wg" #================================================= # CONFIGURING WIREGUARD