Fix run passport:keys when they already exist
This commit is contained in:
parent
b1a333ea4d
commit
3302b0d6d4
2
init
2
init
@ -123,7 +123,9 @@ if [ "${role}" = "app" -a -e artisan ]; then
|
|||||||
# If passport is installed
|
# If passport is installed
|
||||||
if [ -d ${php}/vendor/laravel/passport ]; then
|
if [ -d ${php}/vendor/laravel/passport ]; then
|
||||||
echo "* Generating OAUTH keys ..."
|
echo "* Generating OAUTH keys ..."
|
||||||
|
set +e
|
||||||
su www-data -s /bin/sh -c "php artisan passport:keys"
|
su www-data -s /bin/sh -c "php artisan passport:keys"
|
||||||
|
set -e
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user