mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-03-18 01:10:46 -04:00
Change mastodon:setup
to prevent overwriting already-configured servers (#33684)
This commit is contained in:
parent
37b029d400
commit
94fed6e140
@ -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