From 912850bf82728449a74b56aa3efb937eaf4c31a9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 18 Sep 2018 10:03:36 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 7fe42b1..d675b7f 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -71,17 +71,17 @@ UPDATE2() { } UPDATE3() { export DEBIAN_FRONTEND="noninteractive" - mv -f /opt/runupdates.2 /opt/runupdates.3 - mv -f /opt/runupdates.1 /opt/runupdates.2 - mv -f /opt/runupdates /opt/runupdates.1 + mv -f /opt/runupdates.log.2 /opt/runupdates.log.3 + mv -f /opt/runupdates.log.1 /opt/runupdates.log.2 + mv -f /opt/runupdates.log /opt/runupdates.log.1 if type yum &>/dev/null; then - yum -y update >> /opt/runupdates + yum -y update >> /opt/runupdates.log else if [ "$useAutoremove" -ne 0 ]; then - apt-get -y autoremove >> /opt/runupdates - apt-get update >> /opt/runupdates - apt-get upgrade -y >> /opt/runupdates - apt-get -y autoremove >> /opt/runupdates + apt-get -y autoremove >> /opt/runupdates.log + apt-get update >> /opt/runupdates.log + apt-get upgrade -y >> /opt/runupdates.log + apt-get -y autoremove >> /opt/runupdates.log fi fi echo ""