This commit is contained in:
wvr
2023-05-14 16:00:27 -05:00
commit b8549f1c9b
15 changed files with 305 additions and 0 deletions

23
update_vms.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
ALPINE='pihole seedbox gitea shaarli website joplin nextcloud nginx-proxy-manager mango heimdall persimmon whoogle'
UBUNTU='jellyfin pbs photoview'
# soulseek
msg() {
>&2 printf '[*] %s\n' "$*"
}
for i in $ALPINE ; do
if ping -q -W 2 -c 1 "$i" >/dev/null ; then
msg "Updating: $i"
ssh $i 'apk update;apk upgrade'
fi
done
for i in $UBUNTU ; do
if ping -q -W 2 -c 1 "$i" >/dev/null ; then
msg "Updating: $i"
ssh $i 'apt update;apt upgrade -y;apt dist-upgrade -y;apt autoremove -y'
fi
done