From a4d9291ee391be43b8c71d0e8bf234b257eb594b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 11 Apr 2023 12:26:01 +0200 Subject: [PATCH] use storage, with max size for upload dir --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7ea6865..80fba10 100755 --- a/install.sh +++ b/install.sh @@ -6,6 +6,7 @@ then echo "Please run as root" exit 1 fi +SIZE="5G" UFDIR=${1:=/srv/upfast} USER=${1:=upfast} @@ -27,7 +28,11 @@ python3 -m venv env exit1 pip install -r requirements.txt || exit 1 -mkdir upload' || + +fallocate -l $SIZE storage +mkfs.ext4 storage +mount storage upload +rm -fd /storage/*" || exit 1 cp ./upfast.service /etc/systemd/system/upfast.service