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

corrections

This commit is contained in:
Laurent GAY 2023-12-15 16:06:25 +01:00
parent 7cbe5b42df
commit 13e04008ab
4 changed files with 11 additions and 6 deletions

View file

@ -53,14 +53,14 @@ ram.runtime = "50M"
choices.asso = "Diacamma Asso"
choices.syndic = "Diacamma Syndic"
choices.standard = "Lucterios Standard"
default = "standard"
default = "asso"
[install.language]
ask.en = "Choose the application language"
ask.fr = "Choisissez la langue de l'application"
type = "select"
choices = ["fr","en"]
default = "en"
default = "fr"
[install.archive]
ask.en = "Archive to upload"

View file

@ -9,12 +9,12 @@ 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+="diacamma.accounting,diacamma.payoff,diacamma.invoice,diacamma.member,diacamma.event"
MODULES+=",diacamma.accounting,diacamma.payoff,diacamma.invoice,diacamma.member,diacamma.event"
APPLITYPE="diacamma.asso"
fi
if [ "$lct_appli" == "syndic" ]
then
MODULES+="diacamma.accounting,diacamma.payoff,diacamma.condominium"
MODULES+=",diacamma.accounting,diacamma.payoff,diacamma.condominium"
APPLITYPE="diacamma.syndic"
fi

View file

@ -10,8 +10,9 @@ ynh_script_progression --message="Installing app..." --weight=5
pushd $install_dir
python3 -m venv venv
venv/bin/pip3 install -U lucterios lucterios-standard lucterios-contacts lucterios-documents
venv/bin/pip3 install -U diacamma-asso diacamma-syndic diacamma-financial
cat "https://pypi.diacamma.org" > extra_url
venv/bin/pip3 install -U lucterios lucterios-standard lucterios-contacts lucterios-documents --extra-index-url "https://pypi.diacamma.org"
venv/bin/pip3 install -U diacamma-asso diacamma-syndic diacamma-financial --extra-index-url "https://pypi.diacamma.org"
venv/bin/pip3 install -U gunicorn psycopg2-binary psycopg2 django-auth-ldap3-ad
sed -i 's|member=%s|inheritPermission=%s|g' venv/lib/python*/site-packages/django_auth_ldap3_ad/auth.py
venv/bin/lucterios_admin.py installed

View file

@ -27,6 +27,10 @@ check_params
ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=1
ynh_psql_test_if_first_run
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
ynh_psql_setup_db --db_user=$db_name --db_name=$db_name --db_pwd=$db_pwd
# Restore dump
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < dbbackup.sql
#=================================================