Chris Vogel пре 1 година
родитељ
комит
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/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"
 
 
 # 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

+ 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_script_progression --message="Restoring the app main directory..." --weight=10
 ynh_restore_file --origin_path="$install_dir"
 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
 # RESTORE THE DATA DIRECTORY
 ynh_script_progression --message="Restoring the data directory..." --weight=1
 ynh_script_progression --message="Restoring the data directory..." --weight=1
 ynh_restore_file --origin_path="$data_dir" --not_mandatory
 ynh_restore_file --origin_path="$data_dir" --not_mandatory