renamed upfast.sh to install.sh
This commit is contained in:
parent
b376d91e21
commit
972f55f38d
1 changed files with 1 additions and 3 deletions
25
install.sh
Executable file
25
install.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
# quick install (and run) script for upfast using systemd
|
||||
if [ $EUID -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://git.craftmenners.men/upfast .
|
||||
|
||||
python3 -m venv env
|
||||
. ./env/bin/activate
|
||||
pip install -r requirements.txt
|
||||
mkdir upload'
|
||||
|
||||
cp ./upfast.service /etc/systemd/system/upfast.service
|
Loading…
Add table
Add a link
Reference in a new issue