๐Ÿ“ฆ wagoodman / pi-cluster-utils

๐Ÿ“„ install.sh ยท 16 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#!/bin/bash
set -ue

if [ "$EUID" -ne 0 ]
  then echo "Please run as root"
  exit
fi

pip3 install -r requirements.txt

cp ./inky-service/inky.service /etc/systemd/system/
cp ./clients/k8s-status.service /etc/systemd/system/
systemctl daemon-reload

systemctl enable inky.service
systemctl enable k8s-status.service