From 712de0d88ac18b68ae95d29d9a9b1e0d90b5ca79 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 5 Nov 2019 16:44:10 +0100 Subject: [PATCH] chg: [Update v2.4] cp config --- .gitignore | 2 ++ bin/update-background.py | 3 +++ update/v2.4/Update.sh | 3 +++ 3 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 7a56b361..ac4837a3 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,8 @@ var/www/server.key # Local config configs/keys +bin/packages/core.cfg +bin/packages/config.cfg.backup configs/core.cfg configs/core.cfg.backup configs/update.cfg diff --git a/bin/update-background.py b/bin/update-background.py index 1410cfaa..6f58d0f5 100755 --- a/bin/update-background.py +++ b/bin/update-background.py @@ -53,3 +53,6 @@ if __name__ == "__main__": r_serv.delete('ail:current_background_script') r_serv.delete('ail:current_background_script_stat') r_serv.delete('ail:current_background_update') + + if r_serv.scard('ail:update_v2.4') != 1: + pass diff --git a/update/v2.4/Update.sh b/update/v2.4/Update.sh index 4a6fce05..308e2a3c 100755 --- a/update/v2.4/Update.sh +++ b/update/v2.4/Update.sh @@ -23,6 +23,9 @@ bash ${AIL_BIN}/LAUNCH.sh -lav & wait echo "" +cp ${AIL_BIN}/packages/config.cfg ${AIL_HOME}/configs/core.cfg +rm ${AIL_BIN}/packages/config.cfg + echo "" echo -e $GREEN"Updating AIL VERSION ..."$DEFAULT echo ""