mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Proper backup/restore of config_file_path
This commit is contained in:
parent
9b2da99ab7
commit
ce85ee0451
2 changed files with 4 additions and 1 deletions
|
@ -66,6 +66,9 @@ ynh_backup --src_path="/etc/sudoers.d/${app}_ynh"
|
|||
# Backup the wireguard interface config
|
||||
ynh_backup --src_path="/etc/wireguard"
|
||||
|
||||
# Backing up specific config file, in case of it is not in /etc/wireguard
|
||||
ynh_backup --src_path="$(jq -r ".config_file_path" $final_path/db/server/global_settings.json)" --not_mandatory
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -133,7 +133,7 @@ yunohost service add wireguard_ui --description "WireGuard UI"
|
|||
# RESTORE VARIOUS FILES
|
||||
#=================================================
|
||||
|
||||
ynh_restore_file --origin_path=$(jq -r ".config_file_path" $final_path/db/server/global_settings.json)
|
||||
ynh_restore_file --origin_path=$(jq -r ".config_file_path" $final_path/db/server/global_settings.json) --not_mandatory
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
Loading…
Reference in a new issue