mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 00:55:58 +02:00
GitHub bot: fix linting issues (nobuild)
This commit is contained in:
6
ente/rootfs/etc/cont-init.d/99-run.sh
Executable file → Normal file
6
ente/rootfs/etc/cont-init.d/99-run.sh
Executable file → Normal file
@@ -46,8 +46,8 @@ until pg_isready -q -h localhost -p 5432 -U postgres; do
|
||||
bashio::log.info "Waiting for Postgres to accept connections…"
|
||||
sleep 1
|
||||
|
||||
bashio::log.info "Creating role + database if needed…"
|
||||
su - postgres -c psql <<SQL
|
||||
bashio::log.info "Creating role + database if needed…"
|
||||
su - postgres -c psql <<SQL
|
||||
DO \$\$
|
||||
BEGIN
|
||||
IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname = '${DB_USER}') THEN
|
||||
@@ -60,6 +60,6 @@ END
|
||||
\$\$;
|
||||
SQL
|
||||
|
||||
bashio::log.info "Internal Postgres ready."
|
||||
bashio::log.info "Internal Postgres ready."
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user