Fix typo [skip ci]

This commit is contained in:
Nicolas Meienberger 2022-07-18 21:37:06 +02:00
parent d52c6061fb
commit 4089962531
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ services:
restart: on-failure
stop_grace_period: 1m
volumes:
- ./data/postgres:/var/lib/postgresql/data
- ${PWD}/data/postgres:/var/lib/postgresql/data
ports:
- 5432:5432
environment:

View file

@ -60,7 +60,7 @@ NETWORK_INTERFACE="$(ip route | grep default | awk '{print $5}' | uniq)"
INTERNAL_IP="$(ip addr show "${NETWORK_INTERFACE}" | grep "inet " | awk '{print $2}' | cut -d/ -f1)"
DNS_IP=9.9.9.9 # Default to Quad9 DNS
ARCHITECTURE="$(uname -m)"
TZ="$(timedatectl | grep "Time zone" | awk '{print $3}' || Europe/Berlin)"
TZ="$(timedatectl | grep "Time zone" | awk '{print $3}' | sed 's/\//\\\//g' || Europe\/Berlin)"
if [[ "$ARCHITECTURE" == "aarch64" ]]; then
ARCHITECTURE="arm64"
@ -136,7 +136,7 @@ ENV_FILE=$(mktemp)
JWT_SECRET=$(derive_entropy "jwt")
POSTGRES_PASSWORD=$(derive_entropy "postgres")
TIPI_VERSION=$(get_json_field "${ROOT_FOLDER}/package.json" version)§
TIPI_VERSION=$(get_json_field "${ROOT_FOLDER}/package.json" version)
for template in ${ENV_FILE}; do
sed -i "s/<dns_ip>/${DNS_IP}/g" "${template}"