mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: update environment variable loading in installation scripts
This commit is contained in:
@@ -193,7 +193,9 @@ main() {
|
|||||||
|
|
||||||
# Load environment variables
|
# Load environment variables
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
export $(grep -v '^#' config.env | xargs)
|
set -a
|
||||||
|
source config.env
|
||||||
|
set +a
|
||||||
|
|
||||||
print_info "Generating Dockerfile configurations..."
|
print_info "Generating Dockerfile configurations..."
|
||||||
while IFS= read -r dockerfile_template; do
|
while IFS= read -r dockerfile_template; do
|
||||||
|
|||||||
@@ -16,7 +16,11 @@ set -a
|
|||||||
bash configure.sh
|
bash configure.sh
|
||||||
|
|
||||||
# Load env values from config.env
|
# Load env values from config.env
|
||||||
export $(grep -v '^#' config.env | xargs) && docker compose pull
|
set -a
|
||||||
|
source config.env
|
||||||
|
set +a
|
||||||
|
|
||||||
|
docker compose pull
|
||||||
|
|
||||||
# Start all containers.
|
# Start all containers.
|
||||||
npm start
|
npm start
|
||||||
|
|||||||
Reference in New Issue
Block a user