forked from crony/UpFast
Compare commits
3 Commits
3873729ae7
...
c3f133b211
Author | SHA1 | Date | |
---|---|---|---|
|
c3f133b211 | ||
|
4d3cac8851 | ||
|
574b7ce5f1 |
20
install.sh
20
install.sh
@ -1,26 +1,32 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# quick install (and run) script for upfast using systemd
|
# quick install (and run) script for upfast using systemd
|
||||||
if [ $EUID -ne 0]
|
if [ "$(id -u)" -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "Please run as root"
|
echo "Please run as root"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
useradd --shell /bin/sh --system --home-dir /usr/local/upfast upfast
|
useradd --shell /bin/sh --system --home-dir /usr/local/upfast upfast ||
|
||||||
mkdir -p /usr/local/upfast # dodge copying of skeletons
|
exit 1
|
||||||
|
mkdir -p /usr/local/upfast || # dodge copying of skeletons
|
||||||
|
exit 1
|
||||||
|
|
||||||
chown upfast:upfast /usr/local/upfast
|
chown upfast:upfast /usr/local/upfast
|
||||||
chmod 700 /usr/local/upfast
|
chmod 700 /usr/local/upfast
|
||||||
|
|
||||||
su upfast -c'
|
su upfast -c'
|
||||||
cd
|
cd
|
||||||
git clone https://code.cronyakatsuki.xyz/crony/upfast .
|
git clone https://code.cronyakatsuki.xyz/tlast/upfast . ||
|
||||||
|
exit 1
|
||||||
|
|
||||||
python3 -m venv env
|
python3 -m venv env
|
||||||
. ./env/bin/activate
|
. ./env/bin/activate ||
|
||||||
pip install -r requirements.txt
|
exit1
|
||||||
mkdir upload'
|
pip install -r requirements.txt ||
|
||||||
|
exit 1
|
||||||
|
mkdir upload' ||
|
||||||
|
exit 1
|
||||||
|
|
||||||
cp ./upfast.service /etc/systemd/system/upfast.service
|
cp ./upfast.service /etc/systemd/system/upfast.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
Loading…
Reference in New Issue
Block a user