forked from crony/UpFast
use storage, with max size for upload dir
This commit is contained in:
parent
129101ac2e
commit
a4d9291ee3
@ -6,6 +6,7 @@ then
|
|||||||
echo "Please run as root"
|
echo "Please run as root"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
SIZE="5G"
|
||||||
|
|
||||||
UFDIR=${1:=/srv/upfast}
|
UFDIR=${1:=/srv/upfast}
|
||||||
USER=${1:=upfast}
|
USER=${1:=upfast}
|
||||||
@ -27,7 +28,11 @@ python3 -m venv env
|
|||||||
exit1
|
exit1
|
||||||
pip install -r requirements.txt ||
|
pip install -r requirements.txt ||
|
||||||
exit 1
|
exit 1
|
||||||
mkdir upload' ||
|
|
||||||
|
fallocate -l $SIZE storage
|
||||||
|
mkfs.ext4 storage
|
||||||
|
mount storage upload
|
||||||
|
rm -fd /storage/*" ||
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
cp ./upfast.service /etc/systemd/system/upfast.service
|
cp ./upfast.service /etc/systemd/system/upfast.service
|
||||||
|
Loading…
Reference in New Issue
Block a user