mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Enable and start .path service
This commit is contained in:
parent
d1946f851b
commit
721484eda1
3 changed files with 13 additions and 13 deletions
|
@ -142,13 +142,12 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
|||
# Create a dedicated systemd config for the web UI
|
||||
ynh_add_systemd_config --service=wireguard_ui --template=wireguard_ui.service
|
||||
|
||||
# Create a dedicated systemd config for monitoring WireGuard's configuration
|
||||
cp ../conf/wireguard@.path /etc/systemd/system/wireguard@.path
|
||||
systemctl enable --quiet wireguard@wg0.path
|
||||
|
||||
# Create a dedicated systemd config for WireGuard
|
||||
# Create dedicated systemd configs for starting and monitoring WireGuard's configuration
|
||||
cp ../conf/wireguard@.service /etc/systemd/system/wireguard@.service
|
||||
cp ../conf/wireguard@.path /etc/systemd/system/wireguard@.path
|
||||
systemctl daemon-reload
|
||||
systemctl enable --quiet wireguard@wg0.service
|
||||
systemctl enable --quiet --now wireguard@wg0.path
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
|
@ -110,12 +110,14 @@ ynh_remove_extra_repo --name=$app
|
|||
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
|
||||
|
||||
ynh_restore_file --origin_path=/etc/systemd/system/wireguard_ui.service
|
||||
ynh_restore_file --origin_path=/etc/systemd/system/wireguard@.path
|
||||
ynh_restore_file --origin_path=/etc/systemd/system/wireguard@.service
|
||||
ynh_restore_file --origin_path=/etc/systemd/system/wireguard@.path
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
systemctl enable --quiet wireguard_ui.service
|
||||
systemctl enable --quiet wireguard@wg0.path
|
||||
systemctl enable --quiet wireguard@wg0.service
|
||||
systemctl enable --quiet --now wireguard@wg0.service
|
||||
systemctl enable --quiet --now wireguard@wg0.path
|
||||
|
||||
#=================================================
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
|
|
|
@ -178,13 +178,12 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
|||
# Create a dedicated systemd config for the web UI
|
||||
ynh_add_systemd_config --service=wireguard_ui --template=wireguard_ui.service
|
||||
|
||||
# Create a dedicated systemd config for monitoring WireGuard's configuration
|
||||
cp ../conf/wireguard@.path /etc/systemd/system/wireguard@.path
|
||||
systemctl enable --quiet wireguard@wg0.path
|
||||
|
||||
# Create a dedicated systemd config for restarting WireGuard when its configuration changes
|
||||
# Create dedicated systemd configs for starting and monitoring WireGuard's configuration
|
||||
cp ../conf/wireguard@.service /etc/systemd/system/wireguard@.service
|
||||
cp ../conf/wireguard@.path /etc/systemd/system/wireguard@.path
|
||||
systemctl daemon-reload
|
||||
systemctl enable --quiet wireguard@wg0.service
|
||||
systemctl enable --quiet --now wireguard@wg0.path
|
||||
|
||||
#=================================================
|
||||
# CONFIGURING WIREGUARD
|
||||
|
|
Loading…
Add table
Reference in a new issue