Escape slashes from smtp_password
Makes sed a whole lot happier about life.
This commit is contained in:
parent
4d7edb234e
commit
63b6095f1b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue