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:
parent
01f21b05ea
commit
675c316105
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue