1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diacamma_ynh.git synced 2024-09-03 18:26:10 +02:00

refactoring update_software

This commit is contained in:
Laurent GAY 2024-07-26 11:07:09 +02:00
parent 2439459ce6
commit 20bf47e1fe
4 changed files with 16 additions and 12 deletions

View file

@ -45,3 +45,13 @@ function check_params()
venv/bin/lucterios_admin.py security -n inst-${app} -e "MODE=0"
popd
}
function update_software()
{
pushd $install_dir
venv/bin/lucterios_admin.py check
venv/bin/lucterios_admin.py update
venv/bin/lucterios_admin.py refreshall
popd
}

View file

@ -42,10 +42,12 @@ then
fi
extra_json=$(jq -c . /tmp/extra.json)
venv/bin/lucterios_admin.py modif -n inst-${app} -e ''$extra_json''
venv/bin/lucterios_admin.py update
venv/bin/lucterios_admin.py refreshall
popd
update_software
refresh_collect
#=================================================
# START SUPERVISOR SERVICE
#=================================================

View file

@ -38,11 +38,7 @@ ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < dbb
#=================================================
ynh_script_progression --message="Refresh the app main directory..." --weight=1
pushd $install_dir
venv/bin/lucterios_admin.py check
venv/bin/lucterios_admin.py update
venv/bin/lucterios_admin.py refreshall
popd
update_software
refresh_collect

View file

@ -17,11 +17,7 @@ supervisorctl stop ${app}
#=================================================
ynh_script_progression --message="Updating Diacamma..."
pushd $install_dir
venv/bin/lucterios_admin.py check
venv/bin/lucterios_admin.py update
venv/bin/lucterios_admin.py refreshall
popd
update_software
refresh_collect