mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-24 02:51:43 +01:00
Change mastodon:setup
to prevent overwriting already-configured servers (#33684)
This commit is contained in:
parent
8dcfd3f246
commit
a6fc776c6f
@ -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…
x
Reference in New Issue
Block a user