mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
fix preinstall
This commit is contained in:
parent
66adffbd21
commit
d9d0e17a86
@ -71,4 +71,6 @@ INTERNAL_SMTP_PASSWORD=oneuptime
|
||||
# Licensing Database
|
||||
AIRTABLE_API_KEY=
|
||||
AIRTABLE_BASE_ID=
|
||||
TOKEN_SECRET={{ .Env.ENCRYPTION_SECRET }}
|
||||
TOKEN_SECRET={{ .Env.ENCRYPTION_SECRET }}
|
||||
|
||||
# Ingress Certificate
|
@ -116,15 +116,16 @@ export $(grep -v '^#' config.env | xargs)
|
||||
|
||||
# Write env vars in config files.
|
||||
|
||||
for d in */ ; do
|
||||
if [ -f ./$d.env.tpl ]; then
|
||||
cat ./$d.env.tpl | gomplate > ./$d.env
|
||||
|
||||
for directory_name in $(find . -type d -maxdepth 1) ; do
|
||||
if [ -f "$directory_name/.env.tpl" ]; then
|
||||
cat $directory_name/.env.tpl | gomplate > $directory_name/.env
|
||||
fi
|
||||
|
||||
if [ -f ./$d.Dockerfile.tpl ]; then
|
||||
cat ./$d.Dockerfile.tpl | gomplate > ./$d.Dockerfile
|
||||
if [ -f "$directory_name/Dockerfile.tpl" ]; then
|
||||
cat $directory_name/Dockerfile.tpl | gomplate > $directory_name/Dockerfile
|
||||
fi
|
||||
done
|
||||
|
||||
# Write this to docker-compose.
|
||||
# Convert template to docker-compose.
|
||||
cat docker-compose.tpl.yml | gomplate > docker-compose.yml
|
Loading…
Reference in New Issue
Block a user