Added passport key generation

This commit is contained in:
Deon George 2020-03-05 14:51:24 +11:00
parent b244577c76
commit e87698b30c

6
init
View File

@ -71,6 +71,12 @@ if [ "${role}" = "app" -a -e artisan ]; then
echo "* Running migration..." echo "* Running migration..."
su www-data -s /bin/sh -c "php artisan migrate" && rm -f .migrate su www-data -s /bin/sh -c "php artisan migrate" && rm -f .migrate
fi fi
# If passport is installed
if [ -d ${php}/vendor/laravel/passport ]; then
echo "* Generating OAUTH keys ..."
su www-data -s /bin/sh -c "php artisan passport:keys"
fi
fi fi
exec /usr/local/bin/docker-php-entrypoint "$@" exec /usr/local/bin/docker-php-entrypoint "$@"