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:
parent
c8a39fe613
commit
de7a77364c
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue