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
b685895c49
commit
a07e5dcea1
3 changed files with 13 additions and 21 deletions
|
@ -24,7 +24,8 @@ fi
|
|||
|
||||
function refresh_collect()
|
||||
{
|
||||
python3 manage_${app}.py collectstatic --noinput -l
|
||||
pushd $install_dir
|
||||
venv/bin/python3 manage_${app}.py collectstatic --noinput -l
|
||||
rm -rf ${app}/static/static
|
||||
rm -rf ${app}/static/plugins
|
||||
rm -rf ${app}/static/tmp
|
||||
|
@ -34,4 +35,5 @@ function refresh_collect()
|
|||
rm -rf ${app}/static/settings.py
|
||||
rm -rf ${app}/static/django_error.log
|
||||
rm -rf ${app}/static/__init__.py
|
||||
popd
|
||||
}
|
||||
|
|
|
@ -10,24 +10,15 @@ ynh_script_progression --message="Installing app..." --weight=5
|
|||
|
||||
pushd $install_dir
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
pip3 install -U lucterios lucterios-standard lucterios-contacts lucterios-documents
|
||||
pip3 install -U diacamma-asso diacamma-syndic diacamma-financial
|
||||
pip3 install -U gunicorn psycopg2-binary psycopg2
|
||||
lucterios_admin.py installed
|
||||
sitepackpath=$install_dir/venv/lib/python3.9/site-packages
|
||||
export PYTHONPATH="$sitepackpath:$sitepackpath/lucterios:$sitepackpath/diacamma:$sitepackpath/diacamma/accounting:$sitepackpath/diacamma/asso:$sitepackpath/diacamma/condominium:$sitepackpath/diacamma/event:$sitepackpath/diacamma/invoice:$sitepackpath/diacamma/member:$sitepackpath/diacamma/payoff:$sitepackpath/diacamma/syndic"
|
||||
|
||||
ls -l $install_dir/venv/lib/python*/site-packages/lucterios
|
||||
ls -l $install_dir/venv/lib/python*/site-packages/diacamma
|
||||
ls -l $install_dir/venv/lib/python*/site-packages/diacamma/member
|
||||
ynh_script_progression --message=" >> PYTHONPATH=${PYTHONPATH}"
|
||||
lucterios_admin.py add -n ${app} -p "${APPLITYPE}" -m "${MODULES}" -d "${DATABASE}" -e '{"LANGUAGES":"'${language}'"}'
|
||||
venv/bin/pip3 install -U lucterios lucterios-standard lucterios-contacts lucterios-documents
|
||||
venv/bin/pip3 install -U diacamma-asso diacamma-syndic diacamma-financial
|
||||
venv/bin/pip3 install -U gunicorn psycopg2-binary psycopg2
|
||||
venv/bin/lucterios_admin.py installed
|
||||
venv/bin/lucterios_admin.py add -n ${app} -p "${APPLITYPE}" -m "${MODULES}" -d "${DATABASE}" -e '{"LANGUAGES":"'${language}'"}'
|
||||
popd
|
||||
|
||||
refresh_collect
|
||||
|
||||
popd
|
||||
|
||||
chmod 400 "$install_dir/"
|
||||
chown ${app}:${app} "$install_dir/"
|
||||
|
||||
|
|
|
@ -43,13 +43,12 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
|
|||
ynh_script_progression --message="Updating Diacamma..."
|
||||
|
||||
pushd $install_dir
|
||||
. venv/bin/activate
|
||||
lucterios_admin.py check
|
||||
lucterios_admin.py update
|
||||
lucterios_admin.py refreshall
|
||||
venv/bin/lucterios_admin.py check
|
||||
venv/bin/lucterios_admin.py update
|
||||
venv/bin/lucterios_admin.py refreshall
|
||||
popd
|
||||
|
||||
refresh_collect
|
||||
popd
|
||||
|
||||
chmod 400 "$install_dir/"
|
||||
chown ${app}:${app} "$install_dir/"
|
||||
|
|
Loading…
Add table
Reference in a new issue