wall announcements at beginning/end of upgrade script

This commit is contained in:
Anthony Wang 2024-02-23 21:04:52 +00:00
parent cab5728a63
commit 9acc13c1cb
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ

View file

@ -2,6 +2,8 @@
# Perform a full system upgrade
wall "The server will reboot in 5 minutes to install upgrades!"
# Clean up Nix store
sudo nix-collect-garbage
sudo nix-store --optimize
@ -22,3 +24,5 @@ export NEXTCLOUD_PHP=/usr/bin/php
export NEXTCLOUD_PHP_CONFIG=/etc/php/php.ini
occ upgrade
occ app:update --all
wall "The server will reboot NOW to install upgrades!"