fixed typo in the folder name

This commit is contained in:
Maksym Buz
2025-07-30 22:31:36 +02:00
committed by GitHub
parent 55d5f458c5
commit 9633286070
3 changed files with 0 additions and 0 deletions

15
Docker/n8n/init-data.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
# You should copy this file to your local machine
set -e;
if [ -n "${POSTGRES_NON_ROOT_USER:-}" ] && [ -n "${POSTGRES_NON_ROOT_PASSWORD:-}" ]; then
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE USER ${POSTGRES_NON_ROOT_USER} WITH PASSWORD '${POSTGRES_NON_ROOT_PASSWORD}';
GRANT ALL PRIVILEGES ON DATABASE ${POSTGRES_DB} TO ${POSTGRES_NON_ROOT_USER};
GRANT CREATE ON SCHEMA public TO ${POSTGRES_NON_ROOT_USER};
EOSQL
else
echo "SETUP INFO: No Environment variables given!"
fi