1
0
forked from crony/UpFast

Fix installation script.

This commit is contained in:
CronyAkatsuki 2023-06-15 09:25:58 +02:00
parent 8991c06849
commit 3c3f05d14b

View File

@ -1,11 +1,11 @@
#!/bin/sh #!/bin/bash
# quick install (and run) script for upfast using systemd # quick install (and run) script for upfast using systemd
if [ $EUID -ne 0]
then # Check if script is run by root
echo "Please run as root" [ $EUID -ne 0 ] && printf '%s\n' "Please run as root" && exit 1
exit 1
fi apt-get install python3-pip
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 mkdir -p /usr/local/upfast # dodge copying of skeletons
@ -22,5 +22,5 @@ python3 -m venv env
pip install -r requirements.txt pip install -r requirements.txt
mkdir upload' mkdir upload'
cp ./upfast.service /etc/systemd/system/upfast.service cp /usr/local/upfast/upfast.service /etc/systemd/system/upfast.service
systemctl daemon-reload systemctl daemon-reload