use storage, with max size for upload dir

This commit is contained in:
Raymaekers Luca 2023-04-11 12:26:01 +02:00
parent 129101ac2e
commit a4d9291ee3

View File

@ -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