mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
back to previous version
This commit is contained in:
parent
3864349b6c
commit
599e7af774
1 changed files with 10 additions and 8 deletions
|
@ -87,14 +87,6 @@ ynh_setup_source --dest_dir="$final_path"
|
||||||
chown $app:$app $final_path -R
|
chown $app:$app $final_path -R
|
||||||
chmod 755 $final_path -R
|
chmod 755 $final_path -R
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# Change options in file config.dist.php
|
|
||||||
# and copy in local.dist.php
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url/';" --target_file="$final_path/config.dist.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"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -134,6 +126,16 @@ ynh_script_progression --message="Reloading nginx web server..." --time --weight
|
||||||
|
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# Change options in file config.dist.php
|
||||||
|
# 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_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
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue