fix profile db generator to run even with the system account
This commit is contained in:
parent
5caa7a0e4d
commit
abe4a19824
|
@ -72,7 +72,8 @@ unless Rails.env == "profile"
|
|||
exit
|
||||
end
|
||||
|
||||
unless User.count == 0
|
||||
# by default, Discourse has a "system" account
|
||||
if User.count > 0
|
||||
puts "Only run this script against an empty DB"
|
||||
exit
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue