Files
invoiceninja-docker/alpine/5/rootfs/docker-entrypoint-init.d/10-init-in.sh
2025-10-28 06:26:49 +11:00

15 lines
308 B
Bash
Executable File

#!/bin/sh
php artisan db:seed --force
php artisan cache:clear
# Build up array of arguments...
if [[ ! -z "${IN_USER_EMAIL}" ]]; then
email="--email ${IN_USER_EMAIL}"
fi
if [[ ! -z "${IN_PASSWORD}" ]]; then
password="--password ${IN_PASSWORD}"
fi
php artisan ninja:create-account $email $password