See the Security and Bug Fixes Section - Grub EFI Install Updates Fix Sticky


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optional Widget for Linux Lite 3.2
#44
Some important information about this. How the check for updates function works. How it currently works is it uses apt-check during boot up to see if there are any updates according to the last time sudo apt-get update was run. The widget cannot check for actual updates on a regular basis without being run as sudo, something we cannot do without adding users to the sudoers file - not an option!

Also - the latest update check method is not accurate, please revert back to the previous method in the ~/.conky/updates file:

Code:
#!/bin/bash
# Check for Updates - for the Linux Lite Conky Widget
# Licence - GPLv2 Sharing is Caring
# Jerry Bezencon - Linux Lite 2016

# Variables

NUMOFUPDATES=$(LANG=C apt-get upgrade -s |grep -P '^\d+ upgraded'|cut -d" " -f1)
UPDATEY1="There is 1 Update available"
UPDATEY2="There are $NUMOFUPDATES Updates available"
UPDATEN="Your system is up to date"

# Statements

if [ $NUMOFUPDATES -gt 1 ]; then
    echo "\${color3}"$UPDATEY2    # If there is more than 1 update available

elif [ $NUMOFUPDATES -eq 1 ]; then
    echo "\${color3}"$UPDATEY1    # Return 1 Update available

else
    echo "\${color2}"$UPDATEN    # System is up to date
fi

exit 0

https://www.linuxliteos.com/files/litewidget3.tar.gz

So, you ask then, why is this part of the widget? It's a reminder when you don't remember, about how important updates are to get. Should this still be part of the widget? Your thoughts please.
Reply


Messages In This Thread
Optional Widget for Linux Lite 3.2 - by Valtam - 09-14-2016, 08:15 AM
Re: Optional Widget for Linux Lite 3.2 - by Valtam - 09-22-2016, 08:33 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)