mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
put condition in install and update for config.local.php
This commit is contained in:
parent
3aeae720be
commit
3b39673791
1 changed files with 1 additions and 2 deletions
|
@ -147,8 +147,7 @@ fi
|
||||||
|
|
||||||
if [ -e "$backup_conf" ]
|
if [ -e "$backup_conf" ]
|
||||||
then
|
then
|
||||||
cp -a $backup_conf $final_path/config.local.php
|
cp -a $backup_conf $final_path/config.local.php && echo "const WWW_URI = '$path_url/';" >> $final_path/config.local.php
|
||||||
echo "const WWW_URI = '$path_url/';" >> $final_path/config.local.php
|
|
||||||
else
|
else
|
||||||
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 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…
Add table
Reference in a new issue