1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mineweb_ynh.git synced 2024-09-03 19:45:54 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2020-11-16 12:09:03 +01:00
parent f2315295b1
commit 9b22c04604
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -105,6 +105,16 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --package="$extra_php_dependencies"
#=================================================
# MODIFY A CONFIG FILE
#=================================================
cp -a ../conf/database.php $final_path/app/Config/database.php
ynh_replace_string --match_string="__DBUSER__" --replace_string="$db_name" --target_file="$final_path/app/Config/database.php"
ynh_replace_string --match_string="__DBPWD__" --replace_string="$db_pwd" --target_file="$final_path/app/Config/database.php"
ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$final_path/app/Config/database.php"
#=================================================
# MODIFY FIRST.CTP
#=================================================