1
0
forked from crony/UpFast

Compare commits

..

No commits in common. "a4d9291ee391be43b8c71d0e8bf234b257eb594b" and "c3f133b2114fe854a57a9b9a8ca931d4644399f2" have entirely different histories.

View File

@ -6,19 +6,16 @@ then
echo "Please run as root"
exit 1
fi
SIZE="5G"
UFDIR=${1:=/srv/upfast}
USER=${1:=upfast}
useradd --shell /bin/sh --system --home-dir $UFDIR $UFUSER ||
useradd --shell /bin/sh --system --home-dir /usr/local/upfast upfast ||
exit 1
mkdir -p "$UFDIR" || # dodge copying of skeletons
mkdir -p /usr/local/upfast || # dodge copying of skeletons
exit 1
chown "$UFUSER:$UFUSER" "$UFDIR"
chmod 700 "$UFDIR"
chown upfast:upfast /usr/local/upfast
chmod 700 /usr/local/upfast
su "$UFUSER" -c"
su upfast -c'
cd
git clone https://code.cronyakatsuki.xyz/tlast/upfast . ||
exit 1
@ -28,11 +25,7 @@ python3 -m venv env
exit1
pip install -r requirements.txt ||
exit 1
fallocate -l $SIZE storage
mkfs.ext4 storage
mount storage upload
rm -fd /storage/*" ||
mkdir upload' ||
exit 1
cp ./upfast.service /etc/systemd/system/upfast.service