Skip to content

Instantly share code, notes, and snippets.

@AndrewKvalheim
Created March 8, 2022 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrewKvalheim/6f63343837d2ae0b411ca2e18dee09bc to your computer and use it in GitHub Desktop.
Save AndrewKvalheim/6f63343837d2ae0b411ca2e18dee09bc to your computer and use it in GitHub Desktop.
End-of-day update and shut down script
#!/usr/bin/env bash
set -Eeuo pipefail
sudo --validate
concurrently \
--names 'apt,docker,node,ruby,rust' \
--prefix-colors 'yellow,blue,green,red,cyan' \
'sudo apt-get update && sudo apt-get upgrade --yes' \
'docker system prune --force --volumes' \
'nvm-update' \
'rbenv update' \
'rustup update stable && cargo install-update --all'
sudo poweroff
@AndrewKvalheim
Copy link
Author

concurrently is open-cli-tools/concurrently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment