From: Jay Pfaffman Date: Wed, 27 Jan 2021 01:16:48 +0000 (-0800) Subject: FIX: discourse-setup was not adding MAXMIND key X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5bc3e708aa5a31b82c157bf525916dbc9ada3498;p=discourse_docker.git FIX: discourse-setup was not adding MAXMIND key Oops. The line that was supposed to add the MAXMIND line to app.yml was broken. --- diff --git a/discourse-setup b/discourse-setup index 223ed88..d0e4bc5 100755 --- a/discourse-setup +++ b/discourse-setup @@ -317,11 +317,10 @@ read_default() { } assert_maxmind_license_key() { - echo "Checking if $web_file has MAXMIND placeholder." if ! grep DISCOURSE_MAXMIND_LICENSE_KEY $web_file then echo "Adding MAXMIND placeholder to $web_file" - sed -i -e 's/LETSENCRYPT_ACCOUNT_EMAIL/a\ \ #DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456' $web_file + sed -i '/^.*LETSENCRYPT_ACCOUNT_EMAIL.*/a \ \ #DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456' containers/app.yml fi }