From 937e66ca2addc97babb10bdc61986d8b16dc8842 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 18 Aug 2021 12:10:46 +0200 Subject: [PATCH] Update change_url --- scripts/change_url | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index c602c6b..bea3feb 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -96,9 +96,14 @@ fi #================================================= ynh_script_progression --message="Updating a configuration file..." --weight=1 -#domain=${new_domain%/} -#path_url=${new_path%/} -ynh_replace_string --match_string="\$CFG->wwwroot = .*" --replace_string="\$CFG->wwwroot = 'https://' . '$new_domain' . '${new_path%/}';" --target_file="$final_path/config.php" +domain=${new_domain%/} +path_url=${new_path%/} +#ynh_replace_string --match_string="\$CFG->wwwroot = .*" --replace_string="\$CFG->wwwroot = 'https://' . '$new_domain' . '${new_path%/}';" --target_file="$final_path/config.php" +php${phpversion} "$final_path/admin/cli/install.php" --wwwroot="https://${domain}${path_url%/}" --non-interactive --agree-license + +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # RELOAD NGINX