mirror of
https://github.com/YunoHost-Apps/phpservermon_ynh.git
synced 2024-09-03 19:56:40 +02:00
Fix path-url - config file
This commit is contained in:
parent
0f33ea3d20
commit
1e0b649231
2 changed files with 3 additions and 1 deletions
|
@ -88,6 +88,8 @@ then
|
|||
path_url="$new_path"
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
# Change config file
|
||||
ynh_replace_string --match_string="'PSM_BASE_URL', '.*'" --replace_string="'PSM_BASE_URL', '$path_url'" --target_file="$final_path/config.php"
|
||||
fi
|
||||
|
||||
# Change the domain for NGINX
|
||||
|
|
|
@ -161,7 +161,7 @@ cp -a $final_path/config.php.sample $final_path/config.php
|
|||
ynh_replace_string --match_string="db_user" --replace_string=$db_user --target_file="$final_path/config.php"
|
||||
ynh_replace_string --match_string="db_pass" --replace_string=$db_pwd --target_file="$final_path/config.php"
|
||||
ynh_replace_string --match_string="db_name" --replace_string=$db_name --target_file="$final_path/config.php"
|
||||
ynh_replace_string --match_string='PSM_BASE_URL', '' --replace_string='PSM_BASE_URL',$path_url --target_file="$final_path/config.php"
|
||||
ynh_replace_string --match_string="'PSM_BASE_URL', ''" --replace_string="'PSM_BASE_URL', '$path_url'" --target_file="$final_path/config.php"
|
||||
#=================================================
|
||||
# STORE THE CONFIG FILE CHECKSUM
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue