Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage for --datadir option #1199

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/man/freshclam.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ This option forces old non\-DNS verification method (without a TTL delay).
Check #n times per day for a new database. #n must be between 1 and 50.
.TP
\fB\-\-datadir=DIRECTORY\fR
Install new database in DIRECTORY. The directory must be writable for the '@CLAMAV_USER@' user or unprivileged user running freshclam.
Install new database in DIRECTORY. The directory must be writable for the '@CLAMAV_USER@' user or unprivileged user running freshclam, already exist, and be an absolute path.
.TP
\fB\-\-daemon\-notify=/path/to/clamd.conf\fR
Notify the daemon about the new database. By default it reads a hardcoded config file but you can use a different one. Both local and TCP sockets are supported.
Expand Down
2 changes: 1 addition & 1 deletion docs/man/freshclam.conf.5.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Write the daemon's pid to the specified file.
Default: disabled
.TP
\fBDatabaseDirectory STRING\fR
Path to a directory containing database files.
Path to a directory containing database files. This directory must already exist, be an absolute path, be writeable by freshclam and readable by clamd/clamscan.
.br
Default: @DATADIR@
.TP
Expand Down
2 changes: 2 additions & 0 deletions etc/freshclam.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Example

# Path to the database directory.
# WARNING: It must match clamd.conf's directive!
# WARNING: It must already exist, be an absolute path, be writeable by
# freshclam, and be readable by clamd/clamscan.
# Default: hardcoded (depends on installation options)
#DatabaseDirectory /var/lib/clamav

Expand Down
2 changes: 2 additions & 0 deletions freshclam/freshclam.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ static void help(void)
printf(" --no-dns Force old non-DNS verification method\n");
printf(" --checks=#n -c #n Number of checks per day, 1 <= n <= 50\n");
printf(" --datadir=DIRECTORY Download new databases into DIRECTORY\n");
printf(" NOTE: DIRECTORY must already exist, be an absolute path, and");
printf(" be writeable by freshclam and readable by clamd/clamscan.");
micahsnyder marked this conversation as resolved.
Show resolved Hide resolved
printf(" --daemon-notify[=/path/clamd.conf] Send RELOAD command to clamd\n");
printf(" --local-address=IP -a IP Bind to IP for HTTP downloads\n");
printf(" --on-update-execute=COMMAND Execute COMMAND after successful update.\n");
Expand Down
2 changes: 2 additions & 0 deletions win32/conf_examples/freshclam.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Example

# Path to the database directory.
# WARNING: It must match clamd.conf's directive!
# WARNING: It must already exist, be an absolute path, be writeable by
# freshclam, and be readable by clamd/clamscan.
# Default: hardcoded (depends on installation options)
#DatabaseDirectory "C:\Program Files\ClamAV\database"

Expand Down
Loading