mirror of
https://github.com/YunoHost-Apps/diacamma_ynh.git
synced 2024-09-03 18:26:10 +02:00
correct
This commit is contained in:
parent
fbb8c534c1
commit
146f205cac
3 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
}
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -18,6 +18,9 @@ popd
|
|||
|
||||
refresh_collect
|
||||
|
||||
check_params
|
||||
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE MYSQL DATABASE
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue