add quotes around SMTP_PASSWORD
authorJeff Atwood <jatwood@codinghorror.com>
Sat, 4 Jun 2016 22:46:49 +0000 (15:46 -0700)
committerJeff Atwood <jatwood@codinghorror.com>
Sat, 4 Jun 2016 22:46:49 +0000 (15:46 -0700)
discourse-setup

index 3945a9b32cf78afcb4c9a6f003d77a9a3bebcff9..67d84d49f0331008682b9d0db7a2dff84c0b6cd9 100755 (executable)
@@ -321,7 +321,7 @@ ask_user_for_config() {
     update_ok="n"
   fi
 
-  sed -i -e "s/^  #DISCOURSE_SMTP_PASSWORD:.*/  DISCOURSE_SMTP_PASSWORD: $smtp_password/w $changelog" $config_file
+  sed -i -e "s/^  #DISCOURSE_SMTP_PASSWORD:.*/  DISCOURSE_SMTP_PASSWORD: \"$smtp_password\"/w $changelog" $config_file
   if [ -s $changelog ]
   then
       rm $changelog