1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00
This commit is contained in:
Éric Gaspar 2023-10-02 15:14:26 +02:00
parent 9470bc4729
commit 8c17f48bed
2 changed files with 7 additions and 7 deletions

View file

@ -11,7 +11,7 @@ $dolibarr_main_db_pass="__DB_PWD__";
// Authentication settings
//$dolibarr_main_authentication='dolibarr';
$dolibarr_main_authentication='ldap,dolibarr';
$dolibarr_main_authentication='ldap,dolibarr,http';
$dolibarr_main_auth_ldap_host='ldap:localhost';

View file

@ -57,7 +57,7 @@ ynh_setup_source --dest_dir="$install_dir"
# Create necessary files
data_dir=$install_dir/documents
touch $install_dir/htdocs/conf/conf.php
#touch $install_dir/htdocs/conf/conf.php
#=================================================
# PHP-FPM CONFIGURATION
@ -77,9 +77,9 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
#ynh_add_config --template="../conf/conf.php" --destination="$install_dir/htdocs/conf/conf.php"
ynh_add_config --template="../conf/conf.php" --destination="$install_dir/htdocs/conf/conf.php"
ynh_add_config --template="../conf/install.forced.php" --destination="$install_dir/htdocs/install/install.forced.php"
#ynh_add_config --template="../conf/install.forced.php" --destination="$install_dir/htdocs/install/install.forced.php"
#=================================================
# SETUP APPLICATION WITH CURL
@ -133,7 +133,7 @@ ynh_local_curl "/install/step5.php" \
ynh_exec_fully_quiet sleep 5
ynh_script_progression --message="configuring LDAP" --weight=1
#ynh_script_progression --message="configuring LDAP" --weight=1
# # Populate the LDAP parameters
# ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ../conf/sql/ldap.sql
@ -150,10 +150,10 @@ ynh_script_progression --message="configuring LDAP" --weight=1
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_script_progression --message="configuring config file" --weight=1
#ynh_script_progression --message="configuring config file" --weight=1
# Setup HTTP auth in conf
ynh_replace_string --match_string="dolibarr_main_authentication='dolibarr'" --replace_string="dolibarr_main_authentication='http'" --target_file="$install_dir/htdocs/conf/conf.php"
#ynh_replace_string --match_string="dolibarr_main_authentication='dolibarr'" --replace_string="dolibarr_main_authentication='http'" --target_file="$install_dir/htdocs/conf/conf.php"
#=================================================
# STORE THE CONFIG FILE CHECKSUM