Chris Vogel 1 год назад
Родитель
Сommit
4ed2165307
2 измененных файлов с 6 добавлено и 0 удалено
  1. 1 0
      scripts/backup
  2. 5 0
      scripts/restore

+ 1 - 0
scripts/backup

@@ -10,6 +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"
 
 # for the following backups we'll want to stop flohmarkt and couchdb
 # to guarentee a consistant state

+ 5 - 0
scripts/restore

@@ -7,6 +7,11 @@ source /usr/share/yunohost/helpers
 ynh_script_progression --message="Restoring the app main directory..." --weight=10
 ynh_restore_file --origin_path="$install_dir"
 
+# restore the apps settings
+ynh_script_progression --message="Restoring flohmarkts settings..." --weight=1
+ynh_restore_file --origin_path="/etc/yunohost/apps/$app"
+
+
 # RESTORE THE DATA DIRECTORY
 ynh_script_progression --message="Restoring the data directory..." --weight=1
 ynh_restore_file --origin_path="$data_dir" --not_mandatory