Skip to content

Commit 049df9a

Browse files
kkimuraksachilles
authored andcommitted
Just use result of $(command -v pg_isready)
instead of `find /usr/lib/postgresql -name pg_isready | sort | tail -n1` for db readiness query command To solve following error: find /var/lib/postgresql : No such file or directory I'm sure the directory is exists so I'm not sure why the error reported
1 parent d7c3997 commit 049df9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ gitlab_finalize_database_parameters() {
149149

150150
gitlab_check_database_connection() {
151151

152-
prog=$(find /usr/lib/postgresql/ -name pg_isready -type f | sort | tail -n1)
152+
prog=$(command -v pg_isready)
153153
prog="${prog} -h ${DB_HOST} -p ${DB_PORT} -U ${DB_USER} -d ${DB_NAME} -t 1"
154154

155155
timeout=60

0 commit comments

Comments
 (0)