Skip to content

Commit f22e158

Browse files
committed
Test ubuntu-slim
1 parent b0bc32c commit f22e158

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ function run() {
1010
let env = Object.assign({}, process.env);
1111
env.HOMEBREW_NO_AUTO_UPDATE = '1';
1212
env.HOMEBREW_NO_INSTALL_CLEANUP = '1';
13-
env.SYSTEMD_IGNORE_CHROOT = '1';
1413
// spawn is safer and more lightweight than exec
1514
const ret = spawnSync(command, args, {stdio: 'inherit', env: env});
1615
if (ret.status !== 0) {
@@ -196,7 +195,7 @@ if (isMac()) {
196195
updateHba(dataDir, user);
197196

198197
// start
199-
const startCmd = isArm() ? `restart` : `start`;
198+
const startCmd = slim ? 'enable' : (isArm() ? `restart` : `start`);
200199
run(`sudo`, `systemctl`, startCmd, `postgresql@${postgresVersion}-main`);
201200

202201
bin = `/usr/lib/postgresql/${postgresVersion}/bin`;

0 commit comments

Comments
 (0)