1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diacamma_ynh.git synced 2024-09-03 18:26:10 +02:00
This commit is contained in:
Laurent Gay 2023-12-12 16:28:42 +01:00
parent fbb8c534c1
commit 146f205cac
3 changed files with 26 additions and 0 deletions

View file

@ -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
}

View file

@ -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
#=================================================

View file

@ -18,6 +18,9 @@ popd
refresh_collect
check_params
#=================================================
# RESTORE THE MYSQL DATABASE
#=================================================