diff --git a/scripts/beesd.conf.sample b/scripts/beesd.conf.sample index 53060fa..1d8d26e 100644 --- a/scripts/beesd.conf.sample +++ b/scripts/beesd.conf.sample @@ -16,7 +16,7 @@ UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # BEESSTATUS="$WORK_DIR/$UUID.status" ## Make path shorter in logs -# LOG_SHORT_PATH=N +# OPTIONS="--relative-paths" ## Remove timestamp from bees output # LOG_FILTER_TIME=N diff --git a/scripts/beesd.in b/scripts/beesd.in index 044fc98..fc0a2ea 100755 --- a/scripts/beesd.in +++ b/scripts/beesd.in @@ -64,7 +64,6 @@ MNT_DIR="${MNT_DIR:-$WORK_DIR/mnt/$UUID}" BEESHOME="${BEESHOME:-$MNT_DIR/.beeshome}" BEESSTATUS="${BEESSTATUS:-$WORK_DIR/$UUID.status}" DB_SIZE="${DB_SIZE:-$((64*AL16M))}" -LOG_SHORT_PATH="${LOG_SHORT_PATH:-N}" INFO "Check: Disk exists" if [ ! -b "/dev/disk/by-uuid/$UUID" ]; then @@ -116,14 +115,6 @@ fi MNT_DIR="${MNT_DIR//\/\//\/}" -filter_path(){ - if YN $LOG_SHORT_PATH; then - sed -e "s#$MNT_DIR##g" - else - cat - fi -} - -@LIBEXEC_PREFIX@/bees ${ARGUMENTS[@]} $OPTIONS "$MNT_DIR" 3>&1 2>&1 | filter_path +cd $MNT_DIR && @LIBEXEC_PREFIX@/bees ${ARGUMENTS[@]} $OPTIONS "$MNT_DIR" 3>&1 2>&1 exit 0