From c2dc0cd3b6ba3bb9252835bcd601ea0e6041de46 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 5 Oct 2023 16:49:00 +0200 Subject: [PATCH] feat: Check filesystem during installation --- run/install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/run/install.sh b/run/install.sh index 3d4c1dc..6625f11 100644 --- a/run/install.sh +++ b/run/install.sh @@ -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