mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
change the hook post_upgrade
This commit is contained in:
parent
411a150351
commit
55d2f863f9
1 changed files with 7 additions and 6 deletions
|
@ -15,18 +15,19 @@ source /usr/share/yunohost/helpers
|
|||
app=$YNH_APP_INSTANCE_NAME
|
||||
final_path=/var/www/$app
|
||||
|
||||
#=================================================
|
||||
# Change options in file config.dist.php
|
||||
# and copy in config.local.php
|
||||
#=================================================
|
||||
|
||||
sudo cp -a $final_path/garradin/config.dist.php $final_path/garradin/config.local.php
|
||||
|
||||
#=================================================
|
||||
# backup the bdd
|
||||
#=================================================
|
||||
sudo cp -a /tmp/association.sqlite $final_path/association.sqlite
|
||||
sudo cp -avr /tmp/squelettes $final_path/www/squelettes
|
||||
|
||||
#=================================================
|
||||
# Change options in file config.dist.php
|
||||
# and copy in config.local.php
|
||||
#=================================================
|
||||
|
||||
sudo cp -a /var/www/garradin/config.dist.php var/www/garradin/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"
|
||||
|
|
Loading…
Add table
Reference in a new issue