257b1a5e49
Run sync within a SQL transaction, so that no partial sync happens Don't abort on SQL errors, but print ERROR notice Exit with code 1 when any ERRORs were logged Silence the test suite, so that test runs are more clearly Use PG queries instead of psql in test. This is more flexible than parsing text outputs per Regexp.
10 lines
151 B
Ruby
Executable File
10 lines
151 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
require 'pg_ldap_sync'
|
|
|
|
begin
|
|
PgLdapSync::Application.run(ARGV)
|
|
rescue PgLdapSync::ApplicationExit => ex
|
|
exit ex.exitcode
|
|
end
|