Permalink
Browse files

bareos-config get_database_version_by_release: fix

  • Loading branch information...
joergsteffens committed Sep 21, 2017
1 parent 2831a4a commit 328d2aad4f44594c295df41db39eab58b75f6b0c
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/bareos-config-lib.sh.in
@@ -160,7 +160,7 @@ get_database_version_by_release()
# add marker to list,
# sort the list reverse, assuming versions x.y.z and lines x.y.z=db_version,
# get entry one line after marker
db_version=`printf "$VERSIONS" | sort -t. -k 1,1rn -k 2,2rn -k 3,3rn | sed -r -n "/[0-9\.]=$MARKER$/{ N; s/(.*)=(.*)\n(.*)=(.*)/\4/p }"`
db_version=`printf "$VERSIONS" | sort -t. -k 1,1rn -k 2,2rn -k 3,3rn | sed -r -n "/[0-9.]+.*=$MARKER$/{ N; s/(.*)=(.*)\n(.*)=(.*)/\4/p }"`
if [ -z "$db_version" ]; then
db_version=`sed -n "s/^default=//p" $MAP`

0 comments on commit 328d2aa

Please sign in to comment.