diff options
Diffstat (limited to 'debian/boxbackup-server.config')
-rw-r--r-- | debian/boxbackup-server.config | 5 |
1 files changed, 3 insertions, 2 deletions
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" |