mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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
|
exit
|
||||||
end
|
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"
|
puts "Only run this script against an empty DB"
|
||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user