Skip to content

Instantly share code, notes, and snippets.

@bt0DotNinja
Forked from anonymous/update.sh
Created February 1, 2018 21:44
Show Gist options
  • Save bt0DotNinja/b69b57be9a20f27ad3869e45cb884f27 to your computer and use it in GitHub Desktop.
Save bt0DotNinja/b69b57be9a20f27ad3869e45cb884f27 to your computer and use it in GitHub Desktop.
#!/bin/bash
dnf upgrade --refresh -y
dnf install dnf-plugin-system-upgrade -y
dnf system-upgrade download --refresh --releasever=27 -y
SCS = $?
if [ $SCS -ne 0]; then
dnf system-upgrade download --refresh --releasever=27 -y --allowerasing
fi
echo "Updating..."
dnf system-upgrade reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment