Rework install script

Now the added user clones the repo to run.
This commit is contained in:
Riley Housden 2021-11-30 02:13:39 -05:00
parent e8cb428fa4
commit 0b6dd59da0
Signed by: InValidFire
GPG key ID: 0D6208F6DF56B4D8

View file

@ -1,7 +1,7 @@
adduser --system --home /otp/radical-api radical-api
cp -r * /otp/radical-api
sudo -u radical-api python3 -m pip install -r /otp/radical-api/requirements.txt
cp radical-api.service /etc/systemd/system
addgroup --system radical-api
adduser radical-api radical-api
sudo -u radical-api git clone https://gitdab.com/InValidFire/radical-api.git
sudo -u radical-api python3 -m pip install -r /otp/radical-api/requirements.txt
cp radical-api.service /etc/systemd/system
systemd enable radical-api