mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
add a line in config.local.php for domain in change_url script
This commit is contained in:
parent
193b5fee01
commit
ce9565b6f6
2 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ then
|
||||||
mv $nginx_conf_path /etc/nginx/conf.d/$new_domain.d/$app.conf
|
mv $nginx_conf_path /etc/nginx/conf.d/$new_domain.d/$app.conf
|
||||||
# Store file checksum for the new config file location
|
# Store file checksum for the new config file location
|
||||||
#ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
|
#ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
|
||||||
ynh_replace_string --match_string="const WWW_URL = '$old_domain' . WWW_URI;" --replace_string="const WWW_URI = '$new_domain . WWW_URI;" --target_file="$final_path/config.local.php"
|
ynh_replace_string --match_string="const WWW_URL = '$old_domain' . WWW_URI;" --replace_string="const WWW_URI = '$new_domain' . WWW_URI;" --target_file="$final_path/config.local.php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -131,7 +131,7 @@ systemctl reload nginx
|
||||||
key=$(ynh_string_random --length=50)
|
key=$(ynh_string_random --length=50)
|
||||||
cp -a $final_path/config.dist.php $final_path/config.local.php
|
cp -a $final_path/config.dist.php $final_path/config.local.php
|
||||||
ynh_replace_string --match_string="const SECRET_KEY = '3xUhIgGwuovRKOjVsVPQ5yUMfXUSIOX2GKzcebsz5OINrYC50r';" --replace_string="const SECRET_KEY = '$key';" --target_file="$final_path/config.local.php"
|
ynh_replace_string --match_string="const SECRET_KEY = '3xUhIgGwuovRKOjVsVPQ5yUMfXUSIOX2GKzcebsz5OINrYC50r';" --replace_string="const SECRET_KEY = '$key';" --target_file="$final_path/config.local.php"
|
||||||
ynh_replace_string --match_string="//const WWW_URL = 'http://garradin.chezmoi.tld' . WWW_URI;" --replace_string="const WWW_URI = '$domain . WWW_URI;" --target_file="$final_path/config.local.php"
|
ynh_replace_string --match_string="//const WWW_URL = 'http://garradin.chezmoi.tld' . WWW_URI;" --replace_string="const WWW_URI = '$domain' . WWW_URI;" --target_file="$final_path/config.local.php"
|
||||||
if [ "$path_url" == "/" ]
|
if [ "$path_url" == "/" ]
|
||||||
then
|
then
|
||||||
ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url';" --target_file="$final_path/config.local.php"
|
ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url';" --target_file="$final_path/config.local.php"
|
||||||
|
|
Loading…
Reference in a new issue