1
0
forked from crony/UpFast
UpFast/install.sh

27 lines
571 B
Bash
Raw Normal View History

#!/bin/sh
# quick install (and run) script for upfast using systemd
2023-04-05 14:10:59 +02:00
if [ "$(id -u)" -ne 0 ]
then
echo "Please run as root"
exit 1
fi
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/crony/upfast .
python3 -m venv env
. ./env/bin/activate
pip install -r requirements.txt
mkdir upload'
2023-04-05 12:48:30 +02:00
cp ./upfast.service /etc/systemd/system/upfast.service
2023-04-05 13:05:34 +02:00
systemctl daemon-reload