diff --git a/conf/noalyss.conf b/conf/noalyss.conf index 49e7bb7..dca73b7 100644 --- a/conf/noalyss.conf +++ b/conf/noalyss.conf @@ -16,9 +16,9 @@ define ("NOALYSS_ADMINISTRATOR","__ADMIN__"); // used only for install define ("NOALYSS_ADMIN_PASSWORD","__PASSWORD__"); define ("LOCALE",1); -define ("domaine","__DOMAIN__"); +define ("domaine",""); define ("MULTI",1); -define ("dbname","__DB_NAME__"); +define ("dbname",""); // Uncomment to DEBUG // define ("DEBUG",TRUE); // Uncomment to log your input diff --git a/scripts/install b/scripts/install index 9ccb3f4..0b7844e 100755 --- a/scripts/install +++ b/scripts/install @@ -126,24 +126,24 @@ phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion) # # 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;" -#================================================= +# ================================================= # 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 - -# 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" +# Calculate and store the config file checksum into the app settings +ynh_store_file_checksum "$final_path/include/config.inc.php" #================================================= # GENERIC FINALIZATION @@ -197,7 +197,7 @@ message="Noalyss was successfully installed :) Please open your $app domain: https://$domain$path_url 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 name: $app