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
853c60a092
commit
002c6b1d44
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ location __PATH__ {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Example PHP configuration (remove if not used)
|
# Example PHP configuration (remove if not used)
|
||||||
index index.php;
|
# index index.php;
|
||||||
|
|
||||||
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
|
# Common parameter to increase upload size limit in conjuction with dedicated php-fpm file
|
||||||
#client_max_body_size 50M;
|
#client_max_body_size 50M;
|
||||||
|
|
|
@ -91,9 +91,9 @@ ynh_replace_string --match_string="const PREFER_HTTPS = false;" --replace_string
|
||||||
|
|
||||||
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"
|
|
||||||
else
|
|
||||||
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
|
||||||
|
ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url';" --target_file="$final_path/config.local.php"
|
||||||
fi
|
fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# Files owned by user app
|
# Files owned by user app
|
||||||
|
|
Loading…
Add table
Reference in a new issue