Commit c2dc0cd3 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Check filesystem during installation

parent e2a4ab75
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -39,15 +39,14 @@ else
  TMP="/tmp/dsm"
fi

RDC="$STORAGE/dsm.rd"
rm -rf "$TMP" && mkdir -p "$TMP"

# Check free diskspace
MIN_SPACE=5842450944
SPACE=$(df --output=avail -B 1 "$TMP" | tail -n 1)
(( MIN_SPACE > SPACE )) && error "Not enough free space for installation." && exit 95

RDC="$STORAGE/dsm.rd"

rm -rf "$TMP" && mkdir -p "$TMP"

[[ "${DEBUG}" == [Yy1]* ]] && set -x

if [ ! -f "${RDC}" ]; then