Skip to content

Commit fcd6aa3

Browse files
committed
Fixed error with certain Postgres versions on Ubuntu - fixes #11
1 parent ca1614c commit fcd6aa3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

+4
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ if (isMac()) {
145145
// remove previous cluster so port 5432 is used
146146
if (!isArm()) {
147147
run(`sudo pg_dropcluster ${defaultVersion} main`);
148+
149+
if (postgresVersion < defaultVersion) {
150+
run(`sudo apt-get remove postgresql-${defaultVersion}`);
151+
}
148152
}
149153

150154
// install new version

0 commit comments

Comments
 (0)