#!/usr/bin/bash apt-get update -y # && apt-get upgrade -y apt-get install git python3-venv python3 gunicorn -y cd $HOME mkdir -p code cd $HOME/code/ git clone https://github.com/meanother/hapi.git cd $HOME/code/hapi python3 -m venv env source env/bin/activate pip install --upgrade pip pip install -r req.txt SERVICE_NAME="hapi" SERVICE_DESCRIPTION="Outline Service" SERVICE_PATH="/root/code/hapi" SERVICE_FILE="/etc/systemd/system/$SERVICE_NAME.service" # Create the service file cat > $SERVICE_FILE <