1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
This commit is contained in:
ericgaspar 2021-03-02 10:09:52 +01:00
parent cd2516f1aa
commit 6c630e918d
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 18 additions and 18 deletions

View file

@ -16,9 +16,9 @@ define ("NOALYSS_ADMINISTRATOR","__ADMIN__");
// used only for install // used only for install
define ("NOALYSS_ADMIN_PASSWORD","__PASSWORD__"); define ("NOALYSS_ADMIN_PASSWORD","__PASSWORD__");
define ("LOCALE",1); define ("LOCALE",1);
define ("domaine","__DOMAIN__"); define ("domaine","");
define ("MULTI",1); define ("MULTI",1);
define ("dbname","__DB_NAME__"); define ("dbname","");
// Uncomment to DEBUG // Uncomment to DEBUG
// define ("DEBUG",TRUE); // define ("DEBUG",TRUE);
// Uncomment to log your input // Uncomment to log your input

View file

@ -126,24 +126,24 @@ phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion)
# # Set the user chosen at installation as administrator # # Set the user chosen at installation as administrator
# #ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" <<< "UPDATE ${db_name}_user_table SET username = '$admin' WHERE id = 1;" # #ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" <<< "UPDATE ${db_name}_user_table SET username = '$admin' WHERE id = 1;"
#================================================= # =================================================
# MODIFY A CONFIG FILE # MODIFY A CONFIG FILE
# =================================================
ynh_script_progression --message="Modifying $app config file..."
cp ../conf/noalyss.conf $final_path/include/config.inc.php
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/include/config.inc.php"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/include/config.inc.php"
ynh_replace_string --match_string="__ADMIN__" --replace_string="$admin" --target_file="$final_path/include/config.inc.php"
ynh_replace_string --match_string="__PASSWORD__" --replace_string="$password" --target_file="$final_path/include/config.inc.php"
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#================================================= #=================================================
# ynh_script_progression --message="Modifying $app config file..."
# cp ../conf/noalyss.conf $final_path/include/config.inc.php # Calculate and store the config file checksum into the app settings
ynh_store_file_checksum "$final_path/include/config.inc.php"
# ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/include/config.inc.php"
# ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/include/config.inc.php"
# ynh_replace_string --match_string="__ADMIN__" --replace_string="$admin" --target_file="$final_path/include/config.inc.php"
# ynh_replace_string --match_string="__PASSWORD__" --replace_string="$password" --target_file="$final_path/include/config.inc.php"
# #=================================================
# # STORE THE CONFIG FILE CHECKSUM
# #=================================================
# # Calculate and store the config file checksum into the app settings
# ynh_store_file_checksum "$final_path/include/config.inc.php"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
@ -197,7 +197,7 @@ message="Noalyss was successfully installed :)
Please open your $app domain: https://$domain$path_url Please open your $app domain: https://$domain$path_url
Complete the registration process from the setup page displayed. Complete the registration process from the setup page displayed.
Details for MySQL database to be enterted while registration process: Details for PostgreSQL database to be enterted while registration process:
Database login: $app Database login: $app
Database name: $app Database name: $app