mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
cleaning
This commit is contained in:
parent
9470bc4729
commit
8c17f48bed
2 changed files with 7 additions and 7 deletions
|
@ -11,7 +11,7 @@ $dolibarr_main_db_pass="__DB_PWD__";
|
||||||
// Authentication settings
|
// Authentication settings
|
||||||
//$dolibarr_main_authentication='dolibarr';
|
//$dolibarr_main_authentication='dolibarr';
|
||||||
|
|
||||||
$dolibarr_main_authentication='ldap,dolibarr';
|
$dolibarr_main_authentication='ldap,dolibarr,http';
|
||||||
|
|
||||||
$dolibarr_main_auth_ldap_host='ldap:localhost';
|
$dolibarr_main_auth_ldap_host='ldap:localhost';
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
# Create necessary files
|
# Create necessary files
|
||||||
data_dir=$install_dir/documents
|
data_dir=$install_dir/documents
|
||||||
touch $install_dir/htdocs/conf/conf.php
|
#touch $install_dir/htdocs/conf/conf.php
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PHP-FPM CONFIGURATION
|
# PHP-FPM CONFIGURATION
|
||||||
|
@ -77,9 +77,9 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
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
|
# SETUP APPLICATION WITH CURL
|
||||||
|
@ -133,7 +133,7 @@ ynh_local_curl "/install/step5.php" \
|
||||||
|
|
||||||
ynh_exec_fully_quiet sleep 5
|
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
|
# # Populate the LDAP parameters
|
||||||
# ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ../conf/sql/ldap.sql
|
# 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
|
# 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
|
# 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
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
|
|
Loading…
Reference in a new issue