mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
fix install scripts
This commit is contained in:
parent
26f08e3109
commit
785415b156
@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Pull latest changes
|
||||
git pull
|
||||
|
||||
set -e
|
||||
|
||||
bash preinstall.sh
|
||||
@ -7,13 +10,8 @@ bash preinstall.sh
|
||||
# Load env values from config.env
|
||||
export $(grep -v '^#' config.env | xargs)
|
||||
|
||||
|
||||
# Pull latest changes
|
||||
git pull
|
||||
|
||||
sudo docker compose pull
|
||||
|
||||
|
||||
# Create database if it does not exists
|
||||
sudo docker compose up -d postgres && sleep 30 && sudo docker compose exec postgres psql postgresql://$DATABASE_USERNAME:$DATABASE_PASSWORD@localhost:5432/postgres -c 'CREATE DATABASE oneuptimedb' || echo "Database already created"
|
||||
|
||||
|
@ -6,10 +6,10 @@ ONEUPTIME_SECRET=$(openssl rand -hex 12)
|
||||
export ONEUPTIME_SECRET=$ONEUPTIME_SECRET
|
||||
|
||||
DATABASE_PASSWORD=$(openssl rand -hex 12)
|
||||
export DATABASE_PASSWORD=$DATABASE_PASSWORD.
|
||||
export DATABASE_PASSWORD=$DATABASE_PASSWORD
|
||||
|
||||
CLICKHOUSE_PASSWORD=$(openssl rand -hex 12)
|
||||
export CLICKHOUSE_PASSWORD=$CLICKHOUSE_PASSWORD.
|
||||
export CLICKHOUSE_PASSWORD=$CLICKHOUSE_PASSWORD
|
||||
|
||||
REDIS_PASSWORD=$(openssl rand -hex 12)
|
||||
export REDIS_PASSWORD=$REDIS_PASSWORD
|
||||
|
Loading…
Reference in New Issue
Block a user