aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: cdbeac6d1f7d85a400741f3ceba663d43821742b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env sh

set -xe

# setup /etc/uni-sync/uni-sync.json
uni-sync

# setup our basic scripts
ln -sf $(pwd)/main.py /usr/local/bin/uni-sync-temp-timer
mkdir -p /etc/uni-sync-temp-timer
ln -sf $(pwd)/curves.json /etc/uni-sync-temp-timer/curves.json

# systemd services
ln -sf $(pwd)/uni-sync-temp-timer.service /etc/systemd/system/
ln -sf $(pwd)/uni-sync-temp-timer.timer /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now uni-sync-temp-timer.service