1
0
forked from crony/UpFast

Compare commits

..

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

View File

@ -1,32 +1,26 @@
#!/bin/sh
# quick install (and run) script for upfast using systemd
if [ "$(id -u)" -ne 0 ]
if [ $EUID -ne 0]
then
echo "Please run as root"
exit 1
fi
useradd --shell /bin/sh --system --home-dir /usr/local/upfast upfast ||
exit 1
mkdir -p /usr/local/upfast || # dodge copying of skeletons
exit 1
useradd --shell /bin/sh --system --home-dir /usr/local/upfast upfast
mkdir -p /usr/local/upfast # dodge copying of skeletons
chown upfast:upfast /usr/local/upfast
chmod 700 /usr/local/upfast
su upfast -c'
cd
git clone https://code.cronyakatsuki.xyz/tlast/upfast . ||
exit 1
git clone https://code.cronyakatsuki.xyz/crony/upfast .
python3 -m venv env
. ./env/bin/activate ||
exit1
pip install -r requirements.txt ||
exit 1
mkdir upload' ||
exit 1
. ./env/bin/activate
pip install -r requirements.txt
mkdir upload'
cp ./upfast.service /etc/systemd/system/upfast.service
systemctl daemon-reload