diff --git a/src/reset.sh b/src/reset.sh index b5e7679..f569a99 100644 --- a/src/reset.sh +++ b/src/reset.sh @@ -78,8 +78,7 @@ fi # Check folder -if [[ "${COMMIT:-}" == [Yy1]* ]]; then - STORAGE="/local" +if [[ "${STORAGE,,}" != "/storage" ]]; then mkdir -p "$STORAGE" fi @@ -88,7 +87,9 @@ if [ ! -d "$STORAGE" ]; then fi if [ ! -w "$STORAGE" ]; then - error "Storage folder ($STORAGE) is not writeable!" && exit 13 + msg="Storage folder ($STORAGE) is not writeable!" + msg+=" If SELinux is active, you need to add the \":Z\" flag to the bind mount." + error "$msg" && exit 13 fi # Check filesystem