mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
just a test to watch if it is possible like this install on root path
This commit is contained in:
parent
efecd9f88f
commit
135ac5033d
2 changed files with 8 additions and 4 deletions
|
@ -68,10 +68,14 @@ then
|
|||
# Calculate and store the nginx config file checksum
|
||||
ynh_store_file_checksum "$nginx_conf_path"
|
||||
# ynh_replace_string
|
||||
ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php"
|
||||
if [ $new_path != '/' ]
|
||||
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 = '/';" --target_file="$final_path/config.local.php"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Change the domain for nginx
|
||||
if [ $change_domain -eq 1 ]
|
||||
then
|
||||
|
|
|
@ -88,7 +88,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 PREFER_HTTPS = false;" --replace_string="const PREFER_HTTPS = true;" --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"
|
||||
ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '/';" --target_file="$final_path/config.local.php"
|
||||
|
||||
#=================================================
|
||||
# Files owned by user app
|
||||
|
|
Loading…
Add table
Reference in a new issue