mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 01:31:51 +02:00
GitHub bot: fix linting issues (nobuild)
This commit is contained in:
6
ente/rootfs/etc/cont-init.d/20-internal-db-bootstrap.sh
Executable file → Normal file
6
ente/rootfs/etc/cont-init.d/20-internal-db-bootstrap.sh
Executable file → Normal file
@@ -17,8 +17,8 @@ until pg_isready -q -h localhost -p 5432 -U postgres; do
|
|||||||
bashio::log.info "Waiting for Postgres to accept connections…"
|
bashio::log.info "Waiting for Postgres to accept connections…"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
bashio::log.info "Creating role + database if needed…"
|
bashio::log.info "Creating role + database if needed…"
|
||||||
su - postgres -c psql <<SQL
|
su - postgres -c psql <<SQL
|
||||||
DO \$\$
|
DO \$\$
|
||||||
BEGIN
|
BEGIN
|
||||||
IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname = '${DB_USER}') THEN
|
IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname = '${DB_USER}') THEN
|
||||||
@@ -31,6 +31,6 @@ END
|
|||||||
\$\$;
|
\$\$;
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
bashio::log.info "Internal Postgres ready."
|
bashio::log.info "Internal Postgres ready."
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
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…"
|
bashio::log.info "Waiting for Postgres to accept connections…"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
bashio::log.info "Creating role + database if needed…"
|
bashio::log.info "Creating role + database if needed…"
|
||||||
su - postgres -c psql <<SQL
|
su - postgres -c psql <<SQL
|
||||||
DO \$\$
|
DO \$\$
|
||||||
BEGIN
|
BEGIN
|
||||||
IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname = '${DB_USER}') THEN
|
IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname = '${DB_USER}') THEN
|
||||||
@@ -60,6 +60,6 @@ END
|
|||||||
\$\$;
|
\$\$;
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
bashio::log.info "Internal Postgres ready."
|
bashio::log.info "Internal Postgres ready."
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|||||||
0
ente/rootfs/etc/services.d/00-postgres/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/00-postgres/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/01-minio/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/01-minio/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/02-minio-init/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/02-minio-init/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/03-museum/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/03-museum/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/04-web/run
Normal file → Executable file
0
ente/rootfs/etc/services.d/04-web/run
Normal file → Executable file
Reference in New Issue
Block a user