A single script that detects your distribution and runs the correct update commands. Supports Debian/Ubuntu, RHEL-family (AlmaLinux, Rocky, Fedora, CentOS, CloudLinux), Arch, openSUSE, and Alpine.
This script is for VPS and Bare Metal customers managing their own servers. Web Hosting and WordPress Hosting customers do not need to manage OS-level updates.
# Download and run directlycurl -fsSL https://raw.githubusercontent.com/your-repo/update.sh | bash# Or save locally and runcurl -fsSL https://raw.githubusercontent.com/your-repo/update.sh -o /usr/local/bin/update.shchmod +x /usr/local/bin/update.shupdate.sh
Review any script before running it with curl | bash. You can inspect the script first by removing | bash from the command.
# Run updates every Sunday at 3:00 AM0 3 * * 0 /usr/local/bin/update.sh >> /var/log/auto-update.log 2>&1
Automated updates are convenient but can introduce breaking changes. For production servers, consider running the script manually or scheduling it during a maintenance window where you can monitor the output.