Skip to content

Commit 55562a4

Browse files
committed
Added the safe initial user creation, to avoid failing on the second run.
1 parent 77000a8 commit 55562a4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docker-entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ EOF
167167

168168
# Seed database with initial user
169169
echo -e "${YELLOW}Creating initial user and client...${NC}"
170-
php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/Monarc/FrontOffice/migrations/phinx.php
170+
if ! php ./vendor/robmorgan/phinx/bin/phinx seed:run -c ./module/Monarc/FrontOffice/migrations/phinx.php; then
171+
echo -e "${YELLOW}Initial user/client seed failed. update-all completed successfully, so initialization will continue.${NC}"
172+
echo -e "${YELLOW}If needed, rerun the seed manually after startup.${NC}"
173+
fi
171174

172175
# Set permissions
173176
echo -e "${YELLOW}Setting permissions...${NC}"

0 commit comments

Comments
 (0)