From 560f24fa2d086bcf46a6422f2f54574666d9a92d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 8 Aug 2021 14:00:19 +0200 Subject: [PATCH] fix --- scripts/backup | 2 ++ scripts/change_url | 4 ++-- scripts/restore | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/backup b/scripts/backup index 2eaa6b2..f131305 100644 --- a/scripts/backup +++ b/scripts/backup @@ -37,6 +37,8 @@ ynh_print_info --message="Declaring files to be backed up..." #================================================= ynh_backup --src_path="$final_path" +ynh_backup --src_path="/etc/vikunja/config.yml" +ynh_backup --src_path="/opt/vikunja" #================================================= # BACKUP THE NGINX CONFIGURATION diff --git a/scripts/change_url b/scripts/change_url index 3200555..08a39e7 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -111,9 +111,9 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 domain="$new_domain" path="$new_path" -ynh_add_config --template="../conf/miniflux.conf" --destination="$final_path/$app.conf" +ynh_add_config --template="../conf/config.yml" --destination="/etc/vikunja/config.yml" -chmod 600 "$final_path/$app.conf" +chmod 600 "/etc/vikunja/config.yml" #================================================= # GENERIC FINALISATION diff --git a/scripts/restore b/scripts/restore index cc1e9c3..04b3a9f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,9 +66,13 @@ ynh_restore_file --origin_path="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" -chmod +x "$final_path/miniflux" chown -R $app:www-data "$final_path" +ynh_restore_file --origin_path="/etc/vikunja/config.yml" + +ynh_restore_file --origin_path="/opt/vikunja" +chmod +x "/opt/vikunja/vikunja" + #================================================= # REINSTALL DEPENDENCIES #=================================================