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