From 146f205cac36570a744844325f70aa2185ff5742 Mon Sep 17 00:00:00 2001 From: Laurent Gay Date: Tue, 12 Dec 2023 16:28:42 +0100 Subject: [PATCH] correct --- scripts/_common.sh | 13 +++++++++++++ scripts/install | 10 ++++++++++ scripts/restore | 3 +++ 3 files changed, 26 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index f16e6b4..0ae249b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -39,3 +39,16 @@ function refresh_collect() chmod 750 . popd } + +function check_params() +{ + pushd $install_dir + echo " +from lucterios.CORE.parameters import Params +Params.setvalue('mailing-smtpserver', 'localhost') +Params.setvalue('mailing-smtpport', 1025) +" > /tmp/diacamma_script.py + venv/bin/python3 manage_inst-${app}.py shell < /tmp/diacamma_script.py + venv/bin/lucterios_admin.py security -n inst-${app} -e "MODE=0" + popd +} \ No newline at end of file diff --git a/scripts/install b/scripts/install index 5772866..daabb60 100644 --- a/scripts/install +++ b/scripts/install @@ -19,6 +19,16 @@ popd refresh_collect +if [ ! -z "$archive" ] +then + curl $archive -O /tmp/diacamma_archive.lbk + pushd $install_dir + venv/bin/lucterios_admin.py addrestore -n inst-${app} -f /tmp/diacamma_archive.lbk + popd +fi + +check_params + #================================================= # SYSTEM CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index c2f1d5e..1e98330 100644 --- a/scripts/restore +++ b/scripts/restore @@ -18,6 +18,9 @@ popd refresh_collect +check_params + + #================================================= # RESTORE THE MYSQL DATABASE #=================================================