mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 21:34:06 +02:00
Solve permission denied
https://github.com/alexbelgium/hassio-addons/issues/1676#issuecomment-2591043588
This commit is contained in:
@@ -19,9 +19,11 @@ export DB_PORT
|
|||||||
export DB_HOSTNAME
|
export DB_HOSTNAME
|
||||||
export DB_USERNAME
|
export DB_USERNAME
|
||||||
export DB_PASSWORD
|
export DB_PASSWORD
|
||||||
|
touch /setup_postgres.sql
|
||||||
|
chmod 755 /setup_postgres.sql
|
||||||
echo "DROP EXTENSION IF EXISTS vectors;
|
echo "DROP EXTENSION IF EXISTS vectors;
|
||||||
CREATE EXTENSION vectors;
|
CREATE EXTENSION vectors;
|
||||||
\q"> setup_postgres.sql
|
\q" > /setup_postgres.sql
|
||||||
|
|
||||||
# Enable vectors
|
# Enable vectors
|
||||||
psql "postgres://$DB_USERNAME:$DB_PASSWORD@$DB_HOSTNAME:$DB_PORT" < setup_postgres.sql >/dev/null || true
|
psql "postgres://$DB_USERNAME:$DB_PASSWORD@$DB_HOSTNAME:$DB_PORT" < /setup_postgres.sql >/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user