Weather service installation

This commit is contained in:
2024-12-26 09:36:09 +01:00
parent f2050c1085
commit 2ca39264d1
10 changed files with 50 additions and 17 deletions

View File

@@ -0,0 +1,21 @@
#!/usr/bin/bash
# This script should be run as root
# Build and install weather service
./build-docker.sh
ln -s $HOME/repos/homeAutomation/microservices/weather/run-docker.sh /usr/bin/weather-service
cp weather.service /etc/systemd/system/
cp weather.timer /etc/systemd/system/
systemctl daemon-reload
systemctl enable weather.service
systemctl enable weather.timer
systemctl start weather.service
systemctl start weather.timer