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

38 lines
1.2 KiB
Bash
Raw Normal View History

2023-12-11 17:56:26 +01:00
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
2023-12-12 11:38:41 +01:00
APPLITYPE="lucterios.standard"
MODULES="lucterios.contacts,lucterios.documents,lucterios.mailing"
DATABASE="postgresql:name=$db_name,user=$db_user,password=$db_pwd,host=localhost"
if [ "$lct_appli" == "asso" ]
then
MODULES="lucterios.contacts,lucterios.documents,lucterios.mailing,diacamma.member,diacamma.event,diacamma.accounting,diacamma.invoice,diacamma.payoff"
APPLITYPE="diacamma.asso"
fi
if [ "$lct_appli" == "syndic" ]
then
MODULES="lucterios.contacts,lucterios.documents,lucterios.mailing,diacamma.condominium,diacamma.accounting,diacamma.payoff"
APPLITYPE="diacamma.syndic"
fi
2023-12-11 17:56:26 +01:00
#=================================================
# PERSONAL HELPERS
#=================================================
2023-12-12 11:38:41 +01:00
function refresh_collect()
{
python3 manage_${app}.py collectstatic --noinput -l
rm -rf ${app}/static/static
rm -rf ${app}/static/plugins
rm -rf ${app}/static/tmp
rm -rf ${app}/static/archives
rm -rf ${app}/static/usr
rm -rf ${app}/static/__pycache__
rm -rf ${app}/static/settings.py
rm -rf ${app}/static/django_error.log
rm -rf ${app}/static/__init__.py
}