multiball/multiball.cfg.example

55 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-03-31 04:08:40 +00:00
[config]
2024-03-31 04:19:47 +00:00
# The path to the file to store history in.
2024-03-31 04:08:40 +00:00
history=multiball.history
2024-03-31 04:19:47 +00:00
# A comma-separated list of sshconfigs, but really only the first one matters due to a bug.
2024-03-31 04:08:40 +00:00
sshconfigs=~/.ssh/config
2024-03-31 04:19:47 +00:00
# Bare host lists, one host per line.
#hostlists=example.txt,example2.txt
2024-03-31 04:08:40 +00:00
hostlists=
[startup]
2024-03-31 04:19:47 +00:00
# Commands which run at startup. Not really supported yet. For building aliases and things.
### Below are commands, which are a mini-script to execute several commands in a row.
2024-03-31 04:08:40 +00:00
[cmd.upgrade]
/unsafe
/targets
/confirm Targeting these, ok?
/env DEBIAN_FRONTEND=noninteractive
sudo -E apt -y upgrade
/confirm Do they need to be rebooted?
sudo reboot
[cmd.install-pkg]
/arguments
/unsafe
/targets
/confirm Installing `{@}` on these, ok?
/env DEBIAN_FRONTEND=noninteractive
sudo -E apt -y install {@}
/confirm Do they need to be rebooted?
sudo reboot
[cmd.upgrade-pkg]
/arguments
/unsafe
/targets
/confirm Installing `{@}` on these, ok?
/env DEBIAN_FRONTEND=noninteractive
sudo -E apt -y install --only-upgrade {@}
[cmd.last-updated]
/safe sudo zgrep -B1 'apt-get upgrade' /var/log/apt/* | grep 'Start' | cut -d'z' -f2 | sort | tail -n1 | cut -d' ' -f2 || true
[cmd.upgradable]
/safe apt list --upgradable 2>&1 | grep upgradable | grep -v WARNING || true
[cmd.ping]
/safe echo ping