Skip to content

Commit b89ecd3

Browse files
committed
Merge branch 'nik-platform-fix-checkup-snippet' into 'master'
(Platform) Fix the checkup snippet See merge request postgres-ai/database-lab!650
2 parents 8dbddbf + 6626e6e commit b89ecd3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ui/packages/platform/src/utils/cfggen.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ EOF
135135
if (data.password === 'inputpassword') {
136136
result =
137137
result +
138-
`echo -e "\\n\\nEnter the password for DB user "${data.databaseUserName}": " \\
138+
`echo -e "\\n\\nIMPORTANT: First, ensure you did 'docker login' for gitlab.registry.com, then proceed.\\n\\n" \\
139+
echo -e "\\n\\nEnter the password for DB user "${data.databaseUserName}": " \\
139140
&& read -s -p "" DB_PWD \\
140-
&& PGPASSWORD="$\{DB_PWD} \\
141+
&& PGPASSWORD="$\{DB_PWD}" \\
141142
&& `
142143
}
143144

@@ -157,12 +158,11 @@ EOF
157158
result =
158159
result +
159160
`
160-
-e CHECKUP_CONFIG_PATH="./${data.projectName}.yml" \\
161+
-e CHECKUP_CONFIG_PATH="/${data.projectName}.yml" \\
161162
-e ${hostsType}="${hosts}" \\
162163
-e CHECKUP_SNAPSHOT_DISTANCE_SECONDS=${data.collectPeriod} \\
163164
-e PGPASSWORD="$\{DB_PWD}" \\
164-
registry.gitlab.com/postgres-ai/postgres-checkup:latest \\
165-
bash run_checkup.sh
165+
registry.gitlab.com/postgres-ai/postgres-checkup:latest bash run_checkup.sh
166166
`
167167

168168
return result

0 commit comments

Comments
 (0)