Update linupx-scripts.sh

This commit is contained in:
2018-10-01 08:58:03 -05:00
parent 2e0637aad7
commit 02331f0e0c

View File

@@ -53,6 +53,7 @@ UPDATE1() {
AUTOREMOVE
fi
fi
touch "${FOLDER}/lastrun"
echo ""
echo -e "${Green}Updates have completed${Color_Off}"
if [ ${action-x} ]; then exit 0; fi
@@ -64,6 +65,7 @@ UPDATE2() {
$APTFUNC upgrade -y
AUTOREMOVE
fi
touch "${FOLDER}/lastrun"
echo ""
echo -e "${Green}Updated Upgrades have completed${Color_Off}"
if [ ${action-x} ]; then exit 0; fi
@@ -86,6 +88,7 @@ UPDATE3() {
apt-get -y autoremove >> /opt/runupdates.log
fi
fi
touch "${FOLDER}/lastrun"
echo ""
echo -e "${Green}Updates have completed${Color_Off}"
echo -e "${BOrange}Rebooting now...${Color_Off}"
@@ -212,6 +215,8 @@ EXIT1() {
}
SCRIPT_MENU() {
LASTRUN=$(stat -c %y ${FOLDER}/lastrun)
LASTRUN=${LASTRUN%% *}
while :
do
clear
@@ -220,6 +225,8 @@ SCRIPT_MENU() {
echo "-------------------------------------------------------------"
echo "Hostname: $(hostname -s)"
echo "Domain: $(hostname -d)"
echo ""
echo "Last run: ${LASTRUN}"
echo "-------------------------------------------------------------"
lsb_release -a
echo "-------------------------------------------------------------"