Add info for when the correct tools are not installed
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user