1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00

restore worked, but flohmarkt not running

This commit is contained in:
Chris Vogel 2024-04-21 16:34:44 +02:00
parent ebae47a4c9
commit 9697c6cc38
2 changed files with 3 additions and 22 deletions

View file

@ -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/fail2ban/filter.d/$app.conf"
ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/logrotate.d/$app"
ynh_backup --src_path="/opt/couchdb/etc/local.d/05-flohmarkt.ini" 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 # for the following backups we'll want to stop flohmarkt and couchdb
# to guarentee a consistant state # to guarentee a consistant state

View file

@ -3,30 +3,11 @@
source ../settings/scripts/_common.sh source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
## # restore couchdb directory
## 1. - 4. order matters!
##
# 1. restore couchdb directory
# uncritical, good to have
ynh_script_progression --message="Restoring couchdb directory..." --weight=1 ynh_script_progression --message="Restoring couchdb directory..." --weight=1
ynh_restore_file --origin_path="/var/lib/couchdb" ynh_restore_file --origin_path="/var/lib/couchdb"
# 2. restore the apps settings # reinstall couchdb
# 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
ynh_script_progression --message="Reinstalling couchdb..." --weight=40 ynh_script_progression --message="Reinstalling couchdb..." --weight=40
echo "\ echo "\