Files
homeAutomation/microservices/weather/scripts/install.sh
2024-12-26 09:36:09 +01:00

22 lines
438 B
Bash
Executable File

#!/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