Skip to content

Commit 3c714c8

Browse files
(fix): user creation for self-hosted clean installs (#54776)
Tested locally, it works. Hacky, but it gets the job done
1 parent a2aa289 commit 3c714c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sentry/receivers/users.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
from sentry.models.user import User
44
from sentry.signals import post_upgrade
55
from sentry.silo import SiloMode
6+
from sentry.utils.settings import is_self_hosted
67

78

89
def create_first_user(**kwargs):
910
if User.objects.filter(is_superuser=True).exists():
1011
return
1112

12-
if not sys.stdin.isatty():
13+
if not sys.stdin.isatty() and not is_self_hosted():
1314
return
1415

1516
if not kwargs["interactive"]:

0 commit comments

Comments
 (0)