1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00

Update install

This commit is contained in:
ericgaspar 2021-03-02 09:39:55 +01:00
parent 34b6f1a9ce
commit 7d1614de98
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -129,21 +129,21 @@ phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion)
#================================================= #=================================================
# MODIFY A CONFIG FILE # MODIFY A CONFIG FILE
#================================================= #=================================================
ynh_script_progression --message="Modifying $app config file..." # ynh_script_progression --message="Modifying $app config file..."
cp ../conf/noalyss.conf $final_path/include/config.inc.php # 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_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="__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="__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" # ynh_replace_string --match_string="__PASSWORD__" --replace_string="$password" --target_file="$final_path/include/config.inc.php"
#================================================= # #=================================================
# STORE THE CONFIG FILE CHECKSUM # # STORE THE CONFIG FILE CHECKSUM
#================================================= # #=================================================
# Calculate and store the config file checksum into the app settings # # Calculate and store the config file checksum into the app settings
ynh_store_file_checksum "$final_path/include/config.inc.php" # ynh_store_file_checksum "$final_path/include/config.inc.php"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION