Files
PiDP10Services/install.sh

16 lines
367 B
Bash

#!/bin/sh
# Install the service on the target machine
SERVICEDIR="/usr/local/bin"
SYSTEMDDIR="/etc/systemd/system"
echo "- Installing the service files"
cp ./services/git-monitor $SERVICEDIR
cp ./units/git-monitor.service $SYSTEMDDIR
echo "- Preparing the service files"
systemctl daemon-reload
systemctl start git-monitor.service
echo "- Installation complete."