From 65900e6165ffbb226de38744a2e76c90428b5efa Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 18 Sep 2018 09:47:00 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 }