Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Sep 16, 2024
1 parent bef7dca commit 4b9fe86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,18 @@ options:
-U USER, --user USER user name for the database connections
-p PASSWORD, --password PASSWORD
password for the database connections
password for the database connections (CHECK_BAREOS_DATABASE_PASSWORD)
--password-file PASSWORD_FILE
path to a password file. Can be the bareos-dir.conf
-H HOST, --Host HOST database host
-P PORT, --port PORT database port
-d DATABASE, --database DATABASE
database name
-v, --version show program's version number and exit
```

Various flags can be set with environment variables, refer to the help to see which flags.

## Job

Check the status of Bareos Jobs.
Expand Down
2 changes: 1 addition & 1 deletion check_bareos.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def environ_or_required(key):

password_group.add_argument('-p', '--password', dest='password', action='store',
**environ_or_required('CHECK_BAREOS_DATABASE_PASSWORD'),
help='password for the database connections')
help='password for the database connections (CHECK_BAREOS_DATABASE_PASSWORD)')
password_group.add_argument('--password-file', dest='password_file', action='store',
default='/etc/bareos/bareos-dir.conf',
help='path to a password file. Can be the bareos-dir.conf')
Expand Down

0 comments on commit 4b9fe86

Please sign in to comment.