mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
try to keep secret key script on install
This commit is contained in:
parent
4e2b45921b
commit
2a82b01c09
2 changed files with 5 additions and 5 deletions
|
@ -131,11 +131,12 @@ systemctl reload nginx
|
|||
# and copy in local.dist.php
|
||||
#=================================================
|
||||
|
||||
#echo "const WWW_URI = '$path_url/';" >> $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_local_curl "page_uri"
|
||||
echo "const WWW_URI = '$path_url/';" >> $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 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"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -203,10 +203,9 @@ echo "const WWW_URI = '$path_url/';" >> $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 ROOT = __DIR__;" --replace_string="const ROOT = /var/www/garradin/;" --target_file="$final_path/config.local.php"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
ynh_local_curl "page_uri"
|
||||
ynh_script_progression --message="Upgrade of $app completed" --time --last
|
||||
|
|
Loading…
Add table
Reference in a new issue