mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
try to make possible install on root path and change url from or to root path
This commit is contained in:
parent
de2f191a86
commit
8e416c0352
2 changed files with 3 additions and 3 deletions
|
@ -68,14 +68,14 @@ then
|
||||||
# Calculate and store the nginx config file checksum
|
# Calculate and store the nginx config file checksum
|
||||||
ynh_store_file_checksum "$nginx_conf_path"
|
ynh_store_file_checksum "$nginx_conf_path"
|
||||||
# ynh_replace_string
|
# ynh_replace_string
|
||||||
if old_url != "/"
|
if $old_url != "/"
|
||||||
then
|
then
|
||||||
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
|
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
|
||||||
else
|
else
|
||||||
ynh_replace_string --match_string="const WWW_URI = '$old_path';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
|
ynh_replace_string --match_string="const WWW_URI = '$old_path';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if new_url != "/"
|
if $new_url != "/"
|
||||||
then
|
then
|
||||||
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
|
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
|
||||||
else
|
else
|
||||||
|
|
|
@ -89,7 +89,7 @@ cp -a $final_path/config.dist.php $final_path/config.local.php
|
||||||
# ynh_replace_string --match_string="const ROOT = __DIR__;" --replace_string="const ROOT = /var/www/garradin/;" --target_file="$final_path/config.local.php"
|
# ynh_replace_string --match_string="const ROOT = __DIR__;" --replace_string="const ROOT = /var/www/garradin/;" --target_file="$final_path/config.local.php"
|
||||||
ynh_replace_string --match_string="const PREFER_HTTPS = false;" --replace_string="const PREFER_HTTPS = true;" --target_file="$final_path/config.local.php"
|
ynh_replace_string --match_string="const PREFER_HTTPS = false;" --replace_string="const PREFER_HTTPS = true;" --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"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue