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

Fix backup and restore of /etc/wireguard

Simple is better.
This commit is contained in:
tituspijean 2021-07-04 21:48:27 +02:00
parent 01f21b05ea
commit 675c316105
2 changed files with 2 additions and 1 deletions

View file

@ -64,7 +64,7 @@ ynh_backup --src_path="/etc/sudoers.d/${app}_ynh"
#=================================================
# Backup the wireguard interface config
ynh_backup --src_path=$(jq -r ".config_file_path" $final_path/db/server/global_settings.json)
ynh_backup --src_path="/etc/wireguard"
#=================================================
# END OF SCRIPT

View file

@ -58,6 +58,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_script_progression --message="Restoring the app main directory..." --weight=1
ynh_restore_file --origin_path="$final_path"
ynh_restore_file --origin_path="/etc/wireguard"
#=================================================
# RECREATE THE DEDICATED USER