mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 99-run.sh
This commit is contained in:
@@ -29,25 +29,6 @@ chmod 777 "$PGDATA"
|
||||
# Permissions
|
||||
chmod -R 777 "$CONFIG_HOME"
|
||||
|
||||
#####################
|
||||
# Prepare vector.rs #
|
||||
#####################
|
||||
|
||||
# Set variables for vector.rs
|
||||
DB_PORT=5432
|
||||
DB_HOSTNAME=localhost
|
||||
DB_PASSWORD="$(bashio::config 'POSTGRES_PASSWORD')"
|
||||
DB_USERNAME=postgres
|
||||
if bashio::config.has_value "POSTGRES_USER"; then POSTGRES_USER="$(bashio::config "POSTGRES_USER")"; else POSTGRES_USER=postgres; fi
|
||||
|
||||
export DB_PORT
|
||||
export DB_HOSTNAME
|
||||
export DB_USERNAME
|
||||
export DB_PASSWORD
|
||||
echo "DROP EXTENSION IF EXISTS vectors;
|
||||
CREATE EXTENSION vectors;
|
||||
\q"> setup_postgres.sql
|
||||
|
||||
##############
|
||||
# Launch App #
|
||||
##############
|
||||
|
||||
Reference in New Issue
Block a user