Add info for when the correct tools are not installed

This commit is contained in:
dwelch-r7
2021-04-29 12:55:28 +01:00
parent 9c19f1ad2c
commit f5cb8279de
+3 -2
View File
@@ -992,11 +992,12 @@ if $PROGRAM_NAME == __FILE__
if @connection_string
@db_driver = Standalone.new(options: @options, db_conf: @db_conf, connection_string: @connection_string)
elsif installed?("pg_ctl") && has_requirements(PgCtl.requirements)
elsif installed?('pg_ctl') && has_requirements(PgCtl.requirements)
@db_driver = PgCtl.new(db_path: @db, options: @options, localconf: @localconf, db_conf: @db_conf)
elsif installed?("pg_ctlcluster") && has_requirements(PgCtlcluster.requirements)
elsif installed?('pg_ctlcluster') && has_requirements(PgCtlcluster.requirements)
@db_driver = PgCtlcluster.new(db_path: @db, options: @options, localconf: @localconf, db_conf: @db_conf)
else
print_error('You must have pg_ctl or pgctl_cluster on your path, alternatively you can specify a database with `--connection-string`')
abort
end