forked from evolix/evocheck
IS_EVOBACKUP_EXCLUDE_MOUNT: fix another regression introduced in previous release
This commit is contained in:
parent
e80a7781c7
commit
f024f9d9e8
|
@ -596,8 +596,8 @@ check_evobackup_exclude_mount() {
|
||||||
# then we verify that every mount is excluded
|
# then we verify that every mount is excluded
|
||||||
if ! grep -q -- "^\s*--one-file-system" "${evobackup_file}"; then
|
if ! grep -q -- "^\s*--one-file-system" "${evobackup_file}"; then
|
||||||
# old releases of evobackups don't have version
|
# old releases of evobackups don't have version
|
||||||
if grep -q "^VERSION="23.11"; then
|
if grep -q "^VERSION=" "${evobackup_file}"; then
|
||||||
evobackup_version=$(sed -E -n 's/VERSION="23.11")
|
evobackup_version=$(sed -E -n 's/VERSION="(.*)"/\1/p' "${evobackup_file}")
|
||||||
# versions over 22.12 use a new syntax to exclude rsync files
|
# versions over 22.12 use a new syntax to exclude rsync files
|
||||||
if dpkg --compare-versions "$evobackup_version" ge 22.12 ; then
|
if dpkg --compare-versions "$evobackup_version" ge 22.12 ; then
|
||||||
sed -En '/RSYNC_EXCLUDES="/,/"/ {s/(RSYNC_EXCLUDES=|")//g;p}' "${evobackup_file}" > "${excludes_file}"
|
sed -En '/RSYNC_EXCLUDES="/,/"/ {s/(RSYNC_EXCLUDES=|")//g;p}' "${evobackup_file}" > "${excludes_file}"
|
||||||
|
|
Loading…
Reference in a new issue