From f600612bf097355f76ffba9aeac71876a29e4c26 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Thu, 15 Jun 2017 20:19:49 -0400 Subject: boxbackup-server.config: Don't hardcode path to tune2fs --- debian/boxbackup-server.config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'debian/boxbackup-server.config') diff --git a/debian/boxbackup-server.config b/debian/boxbackup-server.config index 8f5d321c..d722d7d7 100644 --- a/debian/boxbackup-server.config +++ b/debian/boxbackup-server.config @@ -73,8 +73,9 @@ if [ "$OLDRAIDDIR" != "$RET" ]; then # Directories have been changed so we can t done if [ "$DEV" != "" ]; then - if [ -x /sbin/tune2fs ]; then - BS=`tune2fs -l $DEV 2>/dev/null | grep 'Block size' | awk '{print $3 }'` + TUNE2FS="$(command -v tune2fs)" + if [ -x ${TUNE2FS} ]; then + BS=`${TUNE2FS} -l $DEV 2>/dev/null | grep 'Block size' | awk '{print $3 }'` if [ $? = 0 -a $BS != "" ]; then db_set boxbackup-server/raidBlockSize "$BS" -- cgit v1.2.3