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:
parent
ebae47a4c9
commit
9697c6cc38
2 changed files with 3 additions and 22 deletions
|
@ -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
|
||||
|
|
|
@ -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 "\
|
||||
|
|
Loading…
Reference in a new issue