Forráskód Böngészése

Add superadmin creation

Johannes Zellner 8 éve
szülő
commit
fb2cd6b227
1 módosított fájl, 4 hozzáadás és 0 törlés
  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