Update linupx-scripts.sh

This commit is contained in:
2018-09-18 09:47:00 -05:00
parent 02dd5b8bb1
commit 65900e6165

View File

@@ -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
}