1
0
Fork 0
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:
Rodolphe Robles 2020-04-07 19:19:15 +02:00
parent 7fbd49baad
commit d123e8a6d6
2 changed files with 2 additions and 15 deletions

View file

@ -8,7 +8,7 @@ location __PATH__ {
}
# Example PHP configuration (remove if not used)
index index.php /_route.php;
# index index.php /_route.php;
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
#client_max_body_size 50M;

View file

@ -68,20 +68,7 @@ then
# Calculate and store the nginx config file checksum
ynh_store_file_checksum "$nginx_conf_path"
# ynh_replace_string
if $old_url != /
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"
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"
fi
if $new_url != /
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"
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"
fi
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