diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-11-11 14:00:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 14:00:30 +0100 |
commit | 18b885ee3a20c02f5be41d6a04c910175ab00f54 (patch) | |
tree | e1cb8c178101e0880fc1b49cbb5c295e955b7b94 /lib | |
parent | 1114935e6486caaae6e4ba98b51ab803317acb03 (diff) |
Fix "bundle exec rails mastodon:setup" crashing in some circumstances (#16976)
Fix regression from #16896
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/mastodon.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 9146f78e1..d905a07da 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -350,11 +350,11 @@ namespace :mastodon do end end.join("\n") - generated_header = "# Generated with mastodon:setup on #{Time.now.utc}\n\n" + generated_header = "# Generated with mastodon:setup on #{Time.now.utc}\n\n".dup if incompatible_syntax - generated_header << "Some variables in this file will be interpreted differently whether you are\n" - generated_header << "using docker-compose or not.\n\n" + generated_header << "# Some variables in this file will be interpreted differently whether you are\n" + generated_header << "# using docker-compose or not.\n\n" end File.write(Rails.root.join('.env.production'), "#{generated_header}#{env_contents}\n") |