diff --git a/linupx-scripts.sh b/linupx-scripts.sh index c76036e..7fe42b1 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -75,13 +75,13 @@ 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 >> /opt/runupdates + yum -y update >> /opt/runupdates else if [ "$useAutoremove" -ne 0 ]; then - $APTFUNC -y autoremove >> /opt/runupdates - $APTFUNC update >> /opt/runupdates - $APTFUNC upgrade -y >> /opt/runupdates - $APTFUNC -y autoremove >> /opt/runupdates + apt-get -y autoremove >> /opt/runupdates + apt-get update >> /opt/runupdates + apt-get upgrade -y >> /opt/runupdates + apt-get -y autoremove >> /opt/runupdates fi fi echo ""