mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
conditionally initialize passport and instance actor
This commit is contained in:
parent
be2ba79dc2
commit
44266b950b
1 changed files with 9 additions and 1 deletions
|
@ -19,7 +19,15 @@ fi
|
||||||
load-config-files
|
load-config-files
|
||||||
await-database-ready
|
await-database-ready
|
||||||
|
|
||||||
only-once "storage:link" run-as-runtime-user php artisan storage:link
|
|
||||||
only-once "key:generate" run-as-runtime-user php artisan key:generate
|
only-once "key:generate" run-as-runtime-user php artisan key:generate
|
||||||
|
only-once "storage:link" run-as-runtime-user php artisan storage:link
|
||||||
only-once "initial:migrate" run-as-runtime-user php artisan migrate --force
|
only-once "initial:migrate" run-as-runtime-user php artisan migrate --force
|
||||||
only-once "import:cities" run-as-runtime-user php artisan import:cities
|
only-once "import:cities" run-as-runtime-user php artisan import:cities
|
||||||
|
|
||||||
|
if is-true "${ACTIVITY_PUB:-false}"; then
|
||||||
|
only-once "instance:actor" run-as-runtime-user php artisan instance:actor
|
||||||
|
fi
|
||||||
|
|
||||||
|
if is-true "${OAUTH_ENABLED:-false}"; then
|
||||||
|
only-once "passport:keys" run-as-runtime-user php artisan passport:keys
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue