Fix run passport:keys when they already exist

This commit is contained in:
Deon George 2021-12-09 22:42:30 +11:00
parent b1a333ea4d
commit 3302b0d6d4

2
init
View File

@ -123,7 +123,9 @@ if [ "${role}" = "app" -a -e artisan ]; then
# If passport is installed
if [ -d ${php}/vendor/laravel/passport ]; then
echo "* Generating OAUTH keys ..."
set +e
su www-data -s /bin/sh -c "php artisan passport:keys"
set -e
fi
fi