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:
parent
7cbe5b42df
commit
13e04008ab
4 changed files with 11 additions and 6 deletions
|
@ -53,14 +53,14 @@ ram.runtime = "50M"
|
||||||
choices.asso = "Diacamma Asso"
|
choices.asso = "Diacamma Asso"
|
||||||
choices.syndic = "Diacamma Syndic"
|
choices.syndic = "Diacamma Syndic"
|
||||||
choices.standard = "Lucterios Standard"
|
choices.standard = "Lucterios Standard"
|
||||||
default = "standard"
|
default = "asso"
|
||||||
|
|
||||||
[install.language]
|
[install.language]
|
||||||
ask.en = "Choose the application language"
|
ask.en = "Choose the application language"
|
||||||
ask.fr = "Choisissez la langue de l'application"
|
ask.fr = "Choisissez la langue de l'application"
|
||||||
type = "select"
|
type = "select"
|
||||||
choices = ["fr","en"]
|
choices = ["fr","en"]
|
||||||
default = "en"
|
default = "fr"
|
||||||
|
|
||||||
[install.archive]
|
[install.archive]
|
||||||
ask.en = "Archive to upload"
|
ask.en = "Archive to upload"
|
||||||
|
|
|
@ -9,12 +9,12 @@ MODULES="lucterios.contacts,lucterios.documents,lucterios.mailing"
|
||||||
DATABASE="postgresql:name=$db_name,user=$db_user,password=$db_pwd,host=localhost"
|
DATABASE="postgresql:name=$db_name,user=$db_user,password=$db_pwd,host=localhost"
|
||||||
if [ "$lct_appli" == "asso" ]
|
if [ "$lct_appli" == "asso" ]
|
||||||
then
|
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"
|
APPLITYPE="diacamma.asso"
|
||||||
fi
|
fi
|
||||||
if [ "$lct_appli" == "syndic" ]
|
if [ "$lct_appli" == "syndic" ]
|
||||||
then
|
then
|
||||||
MODULES+="diacamma.accounting,diacamma.payoff,diacamma.condominium"
|
MODULES+=",diacamma.accounting,diacamma.payoff,diacamma.condominium"
|
||||||
APPLITYPE="diacamma.syndic"
|
APPLITYPE="diacamma.syndic"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,9 @@ ynh_script_progression --message="Installing app..." --weight=5
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
venv/bin/pip3 install -U lucterios lucterios-standard lucterios-contacts lucterios-documents
|
cat "https://pypi.diacamma.org" > extra_url
|
||||||
venv/bin/pip3 install -U diacamma-asso diacamma-syndic diacamma-financial
|
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
|
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
|
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
|
venv/bin/lucterios_admin.py installed
|
||||||
|
|
|
@ -27,6 +27,10 @@ check_params
|
||||||
|
|
||||||
ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=1
|
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
|
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < dbbackup.sql
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue