diff --git a/scripts/backup b/scripts/backup index 6c7b085..496e228 100644 --- a/scripts/backup +++ b/scripts/backup @@ -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 #================================================= diff --git a/scripts/restore b/scripts/restore index 51bd50a..3d53d5c 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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