Minor fixes to file paths and log messages
This commit is contained in:
parent
cebb418be5
commit
88e5aa56d4
@ -51,7 +51,7 @@ EXTRA_RSYNC_OPTS = {
|
||||
# ----- File Options -----
|
||||
CONFIG_DIR = "/etc/rbackup"
|
||||
FILE_OPTS = [f"--exclude-from={CONFIG_DIR}/home-exclude.conf"]
|
||||
INCLUDE_PATHS = [f"{CONFIG_DIR}/etc-include.conf", "{CONFIG_DIR}/system-include.conf"]
|
||||
INCLUDE_PATHS = [f"{CONFIG_DIR}/etc-include.conf", f"{CONFIG_DIR}/system-include.conf"]
|
||||
COMMENT_REGEX = r"^[^#; ]+"
|
||||
|
||||
|
||||
@ -144,7 +144,7 @@ def merge_files(*config_files):
|
||||
l for l in opened_file.readlines() if re.match(COMMENT_REGEX, l)
|
||||
)
|
||||
else:
|
||||
syslog.warning(f"{config_file} does not exist, ignoring")
|
||||
syslog.warning(f"{config_file} does not exist, ignoring.")
|
||||
|
||||
include_lines.sort()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user