13 lines
249 B
Bash
13 lines
249 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
echo "[UPDATE] Pulling latest code..."
|
|
cd /home/hmi/Desktop/HMI || exit 1
|
|
git reset --hard HEAD
|
|
git pull origin main
|
|
|
|
echo "[RESTART] Restarting HMI service..."
|
|
sudo /bin/systemctl restart hmi.service
|
|
|
|
echo "[DONE] HMI updated."
|