Ver código fonte

Add superadmin creation

Johannes Zellner 8 anos atrás
pai
commit
fb2cd6b227
1 arquivos alterados com 4 adições e 0 exclusões
  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