mirror of
https://github.com/YunoHost-Apps/matomo_ynh.git
synced 2024-09-03 19:45:56 +02:00
Update change_url
Create config.ini.php if it doesn't exist
This commit is contained in:
parent
8329cafbba
commit
168de40b99
1 changed files with 7 additions and 0 deletions
|
@ -25,6 +25,13 @@ ynh_change_url_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Reconfiguring Matomo..." --weight=2
|
||||
|
||||
if [[ ! -f "$install_dir/config/config.ini.php" ]]; then
|
||||
# config.ini.php is only created during the post-install process...
|
||||
# it is therefore not present when the CI tests are carried out...
|
||||
# This condition is only for CI test to go through the upgrade process
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
fi
|
||||
|
||||
# See https://matomo.org/faq/how-to-install/faq_18/
|
||||
ynh_replace_string --match_string="$old_domain" --replace_string="$new_domain" --target_file="$install_dir/config/config.ini.php"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue