Browse Source

Add superadmin creation

Johannes Zellner 8 năm trước cách đây
mục cha
commit
fb2cd6b227
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      start.sh

+ 4 - 0
start.sh

@@ -56,6 +56,10 @@ else
     python manage.py migrate --noinput
 fi
 
+# this is done here since old taiga installations do not have a superadmin
+echo "==> Create superadmin"
+python manage.py loaddata initial_user
+
 echo "==> Make cloudron own /run"
 chown -R cloudron:cloudron /run
 chown -R cloudron:cloudron /app/data