Add installation scripts and documentation
This commit is contained in:
15
install.sh
Normal file
15
install.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user