From 9697c6cc388a55e62a3fa5a954a19b811ecd41b0 Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Sun, 21 Apr 2024 16:34:44 +0200 Subject: [PATCH] restore worked, but flohmarkt not running --- scripts/backup | 2 +- scripts/restore | 23 ++--------------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/scripts/backup b/scripts/backup index 503b6e4..89ace40 100755 --- a/scripts/backup +++ b/scripts/backup @@ -10,7 +10,7 @@ ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf" ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/opt/couchdb/etc/local.d/05-flohmarkt.ini" -ynh_backup --src_path="/etc/yunohost/apps/$app" +# ynh_backup --src_path="/etc/yunohost/apps/$app" # for the following backups we'll want to stop flohmarkt and couchdb # to guarentee a consistant state diff --git a/scripts/restore b/scripts/restore index b409cb9..ccbb6f5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -3,30 +3,11 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers -## -## 1. - 4. order matters! -## - -# 1. restore couchdb directory -# uncritical, good to have +# restore couchdb directory ynh_script_progression --message="Restoring couchdb directory..." --weight=1 ynh_restore_file --origin_path="/var/lib/couchdb" -# 2. restore the apps settings -# they contain variables needed to install couchdb (see below) -ynh_script_progression --message="Restoring flohmarkts settings..." --weight=1 -ynh_restore_file --origin_path="/etc/yunohost/apps/$app" - -# 3. get variables from settings.yaml for couchdb -ynh_script_progression --message="Restoring settings for couchdb install..." --weight=1 -# export app=$YNH_APP_INSTANCE_NAME -# export couchdb_magic_cookie=$(ynh_app_setting_get $app couchdb_magic_cookie) -# export password_couchdb_admin=$(ynh_app_setting_get $app password_couchdb_admin) -# export password_couchdb_admin=$(ynh_app_setting_get $app password_couchdb_admin) -# @@ debug -env - -# 4. reinstall couchdb +# reinstall couchdb ynh_script_progression --message="Reinstalling couchdb..." --weight=40 echo "\