1
0
Fork 0
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:
Robles Rodolphe 2020-04-09 11:56:03 +02:00
parent 3aeae720be
commit 3b39673791

View file

@ -147,8 +147,7 @@ fi
if [ -e "$backup_conf" ]
then
cp -a $backup_conf $final_path/config.local.php
echo "const WWW_URI = '$path_url/';" >> $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
else
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"