Skip to content

Commit 1a3f3c2

Browse files
committed
Test ubuntu-slim
1 parent 60e5ac1 commit 1a3f3c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ if (isMac()) {
161161
spawnSync(`sudo`, [`tee`, `/etc/apt/sources.list.d/pgdg.list`], {input: pgdgList});
162162
}
163163

164-
console.log(process.env['ImageOS']);
164+
const slim = process.env['ImageOS'] === 'undefined';
165165

166-
if (postgresVersion != defaultVersion || isArm()) {
166+
if (postgresVersion != defaultVersion || isArm() || slim) {
167167
// remove previous cluster so port 5432 is used
168-
if (!isArm() && typeof process.env['ImageOS'] !== 'undefined') {
168+
if (!isArm() && !slim) {
169169
run(`sudo`, `pg_dropcluster`, defaultVersion, `main`);
170170

171171
if (postgresVersion < defaultVersion) {

0 commit comments

Comments
 (0)