docker to services folder
This commit is contained in:
@@ -1,21 +1,16 @@
|
||||
#!/bin/bash
|
||||
#scriptPath=$(dirname "$0") not working if called from symbolic link
|
||||
scriptPath="$(dirname "$(readlink -f "$0")")"
|
||||
doWork(){
|
||||
apt update -y
|
||||
apt upgrade -y
|
||||
$scriptPath/../docker/portainer/docker-run.sh
|
||||
$scriptPath/../docker/promtail/docker-run.sh
|
||||
$scriptPath/../docker/telegraf/docker-run.sh
|
||||
$scriptPath/../docker/code-server/docker-run.sh
|
||||
$scriptPath/../docker/nginx/docker-run.sh
|
||||
$scriptPath/../services/portainer/docker-run.sh
|
||||
$scriptPath/../services/promtail/docker-run.sh
|
||||
$scriptPath/../services/telegraf/docker-run.sh
|
||||
$scriptPath/../services/code-server/docker-run.sh
|
||||
$scriptPath/../services/nginx/docker-run.sh
|
||||
docker image prune -f
|
||||
}
|
||||
doWork 2>&1 | logger -s -t "auto-update"
|
||||
|
||||
#doWork 2>&1 | logger -t "auto-update"
|
||||
#example to check logs for autou-pdate
|
||||
#journalctl --since yesterday -u cron.service | grep auto-update
|
||||
exit 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user