This commit is contained in:
Benjamin Toby 2025-01-13 22:59:45 +01:00
parent 4a4ac6a7e7
commit 43e98d1565

View File

@ -32,15 +32,15 @@ if [ -n "${NEXT_PUBLIC_DSQL_LOCAL}" ]; then
batchrun
else
echo "NEXT_PUBLIC_DSQL_LOCAL is set. Running Local initialization ..."
bun /app/docker-root-user-init.ts
# bun /app/docker-root-user-init.ts
if [[ $? == 0 ]]; then
echo "First User Setup Complete"
else
echo "First User Setup Failed!. Exiting ..."
exit 1
fi
bun /app/package-shared/shell/mariadb-users/refreshUsersAndGrants.ts
bun run start:local
# bun /app/package-shared/shell/mariadb-users/refreshUsersAndGrants.ts
bun server.ts
fi
else
echo "NEXT_PUBLIC_DSQL_LOCAL is not set."