1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

refactor(level 3): WG service set in upgrade

This commit is contained in:
tytan652 2020-12-29 20:10:01 +01:00 committed by tituspijean
parent c8a39fe613
commit de7a77364c

View file

@ -118,10 +118,7 @@ cp ../conf/wireguard.path /etc/systemd/system/wireguard.path
systemctl enable wireguard.path systemctl enable wireguard.path
# Create a dedicated systemd config for restarting WireGuard # Create a dedicated systemd config for restarting WireGuard
cp ../conf/wireguard.service /etc/systemd/system/wireguard.service ynh_add_systemd_config --service=wireguard --template=wireguard.service --others_var="port_wg"
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"
#================================================= #=================================================
# CONFIGURING WIREGUARD # CONFIGURING WIREGUARD