try to implement the global containerization

This commit is contained in:
Giovanni committed 2026-10-03 18:42:21 +02:00
1 parent e2b471312c
commit ed38086d09
24 files changed
+966

No files matched your search

+21
View File
@@ -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
}