summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bareos/PKGBUILD2
-rwxr-xr-xbareos/check-if-bareos-backup-is-running7
2 files changed, 5 insertions, 4 deletions
diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD
index 60d4bdb85..62b2a8f42 100644
--- a/bareos/PKGBUILD
+++ b/bareos/PKGBUILD
@@ -42,7 +42,7 @@ source=("$pkgbase-$pkgver.tar.gz::https://github.com/$pkgbase/$pkgbase/archive/R
'check-if-bareos-backup-is-running')
sha512sums=('e91f9470b206a9f8e707fb8cb72497e240b85cdb94b5ef1d6262db7b71ba05ba8a4909aeb66df8cf86f6d0c70d35207ed7e865a202e7552cae7d410d04259137'
'724ca4e04ff4dfb3e56890a06ffb777cac8e1aeafb6142a347fa542aedcdf6604b280f2d55da3c3d7bbcf996cdd0f6184ca324e9195f3f4db090b17337f1df3a'
- '995e642c8cade256c3c1df0df029c7033dda3d7f716349ee825558841159e7afb52a7897f9ba0fa1ca62f1f3e759735cba5c823026581ad50c220d187a2f9b66')
+ 'ca42a61be735dbe112f4197c6c2db99a143aadeae9a890a75a6092d0e092b76af0964e671e98171c0c853461063ba6f53fa6b91eef619bfd78ddc24698c70e19')
prepare() {
cd "${srcdir}/${pkgbase}-Release-${pkgver}"
diff --git a/bareos/check-if-bareos-backup-is-running b/bareos/check-if-bareos-backup-is-running
index ea7cc3aff..bb513e653 100755
--- a/bareos/check-if-bareos-backup-is-running
+++ b/bareos/check-if-bareos-backup-is-running
@@ -5,11 +5,12 @@ if [ $# -ne 0 ]; then
exit 2
fi
-if awk '{print $3}' /proc/net/tcp \
+if cat /proc/net/tcp* \
+| awk '{print $3}' \
| cut -d: -f2 \
| grep -qxiF '238F'; then
- >&2 echo 'bareos-fd is not connected to bareos-sd'
-else
>&2 echo 'bareos-fd is connected to bareos-sd'
exit 1
+else
+ >&2 echo 'bareos-fd is not connected to bareos-sd'
fi