diff --git a/scripts/install b/scripts/install index 70b9641..786214d 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 8b14923..6c534ee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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