generate TYPESENSE_API_KEY
This commit is contained in:
@@ -48,6 +48,13 @@ if [ -f composer.json ]; then
|
||||
fi
|
||||
|
||||
cp /tmp/app.env .env
|
||||
|
||||
/usr/local/bin/wait-typesense.sh
|
||||
|
||||
TYPESENSE_API_KEY=$(cat /typesense-data/api-key)
|
||||
sed -i "s/^TYPESENSE_API_KEY=.*/TYPESENSE_API_KEY=$TYPESENSE_API_KEY/" .env
|
||||
|
||||
|
||||
chown www-data:www-data .env
|
||||
chmod 664 .env
|
||||
|
||||
|
||||
Reference in New Issue
Block a user