We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9b42de commit 16a2024Copy full SHA for 16a2024
bin/rmt-cli
@@ -42,6 +42,12 @@ if Settings.try(:host_system).blank? && File.exist?(RMT::CREDENTIALS_FILE_LOCATI
42
warn "Run as root or adjust the permissions."
43
end
44
45
+unless Settings['database']
46
+ warn "Error loading database config."
47
+ warn 'Please make sure that /etc/rmt.conf is readable by the rmt process and has your database configured.'
48
+ exit RMT::CLI::Error::ERROR_OTHER
49
+end
50
+
51
db_config = RMT::Config.db_config
52
ActiveRecord::Base.establish_connection(db_config)
53
0 commit comments