mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-23 22:16:57 +00:00
Change mastodon:setup
to prevent overwriting already-configured servers (#33684)
This commit is contained in:
parent
8dcfd3f246
commit
a6fc776c6f
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue