diff --git a/linupx-scripts.sh b/linupx-scripts.sh index b2e6272..dccd2fb 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -75,18 +75,19 @@ UPDATE3() { mv -f /opt/runupdates.1 /opt/runupdates.2 mv -f /opt/runupdates /opt/runupdates.1 if type yum &>/dev/null; then - $APTFUNC -y update + $APTFUNC -y update >> /opt/runupdates else if [ "$useAutoremove" -ne 0 ]; then - $APTFUNC -y autoremove - $APTFUNC update - $APTFUNC upgrade -y - $APTFUNC -y autoremove + $APTFUNC -y autoremove >> /opt/runupdates + $APTFUNC update >> /opt/runupdates + $APTFUNC upgrade -y >> /opt/runupdates + $APTFUNC -y autoremove >> /opt/runupdates fi fi echo "" echo -e "${Green}Updates have completed${Color_Off}" - + echo -e "${BOrange}Rebooting now...${Color_Off}" + sleep 3 /sbin/shutdown -r now exit 0 }