try to implement the global containerization
This commit is contained in:
1 parent
e2b471312c
commit
ed38086d09
24 files changed
+966
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
setup_env() {
|
||||
echo "Configuring environment..."
|
||||
|
||||
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
|
||||
echo "DEV=$DEV" >> .env
|
||||
|
||||
if [ "$IS_DEV" = 1 ]; then
|
||||
chown www-data:www-data .env
|
||||
chmod 664 .env
|
||||
else
|
||||
chown www-data:www-data .env
|
||||
chmod 640 .env
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user