Skip to content

Commit

Permalink
Change mastodon:setup to prevent overwriting already-configured ser…
Browse files Browse the repository at this point in the history
…vers (#33684)
  • Loading branch information
ClearlyClaire authored Jan 22, 2025
1 parent 8dcfd3f commit a6fc776
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tasks/mastodon.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ namespace :mastodon do
prompt = TTY::Prompt.new
env = {}

if ENV['LOCAL_DOMAIN']
prompt.warn "It looks like you already configured Mastodon for domain '#{ENV['LOCAL_DOMAIN']}'."
prompt.warn 'Never re-run this task on an already-configured running server.'
next prompt.warn 'Nothing saved. Bye!' if prompt.no?('Continue anyway?')
end

clear_environment!

begin
Expand Down

0 comments on commit a6fc776

Please sign in to comment.