diff --git a/scripts/backup b/scripts/backup index 91f71c1..4760bd3 100644 --- a/scripts/backup +++ b/scripts/backup @@ -68,6 +68,8 @@ ynh_backup --src_path="/etc/logrotate.d/$app" #================================================= ynh_backup --src_path="/etc/systemd/system/$app.service" +ynh_backup --src_path=/etc/systemd/system/wireguard_ui.service +ynh_backup --src_path=/etc/systemd/system/wireguard.path #================================================= # BACKUP VARIOUS FILES diff --git a/scripts/restore b/scripts/restore index 7842d5f..b0b8979 100644 --- a/scripts/restore +++ b/scripts/restore @@ -91,8 +91,11 @@ ynh_install_extra_app_dependencies --repo="http://http.debian.net/debian buster- #================================================= ynh_script_progression --message="Restoring the systemd configuration..." --time --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/$app.service" -systemctl enable $app.service + +systemctl enable wireguard.path #================================================= # INTEGRATE SERVICE IN YUNOHOST