From 4d5f0cb80e3eb8879d29a3a60ce6476cfa595a55 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Wed, 8 May 2019 17:24:49 +0200 Subject: [PATCH] Change domain in Kanboard configuration --- scripts/change_url | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 14c221d..549d588 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -76,6 +76,16 @@ then ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" fi +#================================================= +# SPECIFIC MODIFICATIONS +#================================================= +ynh_print_info "Applying Kanboard specific modifications..." + +if [ $change_domain -eq 1 ] +then + # Change domain in Kanboard configuration + ynh_replace_string --match_string="'${old_domain}'" --replace_string="'${new_domain}'" --target_file="${final_path}/config.php" +fi #================================================= # GENERIC FINALISATION #=================================================