Files
casa/scripts/auto-update.sh
Márcio Fernandes cc9cc282d3
All checks were successful
deploy / deploy (push) Successful in 2s
Changes to be committed:
modified:   .gitea/workflows/service.zigbee2mqtt.yml
	modified:   README.md
	modified:   scripts/auto-update.sh
2024-08-24 01:14:57 +01:00

18 lines
411 B
Bash
Executable File

#!/bin/bash
scriptPath="$(dirname "$(readlink -f "$0")")"
doWork(){
apt update -y
apt upgrade -y
$scriptPath/../services/code-server/docker-run.sh
$scriptPath/../services/nginx/docker-run.sh
#$scriptPath/../services/wyoming-faster-whisper/docker-run.sh
#$scriptPath/../services/wyoming-piper/docker-run.sh
docker image prune -f
}
doWork 2>&1 | logger -s -t "auto-update"
exit 0