forked from crony/UpFast
added error detection
This commit is contained in:
parent
574b7ce5f1
commit
4d3cac8851
18
install.sh
18
install.sh
@ -7,20 +7,26 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
useradd --shell /bin/sh --system --home-dir /usr/local/upfast upfast
|
||||
mkdir -p /usr/local/upfast # dodge copying of skeletons
|
||||
useradd --shell /bin/sh --system --home-dir /usr/local/upfast upfast ||
|
||||
exit 1
|
||||
mkdir -p /usr/local/upfast || # dodge copying of skeletons
|
||||
exit 1
|
||||
|
||||
chown upfast:upfast /usr/local/upfast
|
||||
chmod 700 /usr/local/upfast
|
||||
|
||||
su upfast -c'
|
||||
cd
|
||||
git clone https://code.cronyakatsuki.xyz/crony/upfast .
|
||||
git clone https://code.cronyakatsuki.xyz/tlast/upfast . ||
|
||||
exit 1
|
||||
|
||||
python3 -m venv env
|
||||
. ./env/bin/activate
|
||||
pip install -r requirements.txt
|
||||
mkdir upload'
|
||||
. ./env/bin/activate ||
|
||||
exit1
|
||||
pip install -r requirements.txt ||
|
||||
exit 1
|
||||
mkdir upload' ||
|
||||
exit 1
|
||||
|
||||
cp ./upfast.service /etc/systemd/system/upfast.service
|
||||
systemctl daemon-reload
|
||||
|
Loading…
Reference in New Issue
Block a user