LINUX LITE 7.4 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lite Software - Suggestions welcomed
#23
New Updates file, now combined into one file (thank you to Jeff from the LDC).
Make a file called betaupdates, paste the following into it and save & close, make the file executable then double click on it to run it.

Code:
#!/bin/bash
#-----------------------------------------------------------------------------------------
# Name: Linux Lite Updates
# Description: A GUI tool to easily install Updates in Linux Lite.
# Authors: Misko_2083, Jeff, Jerry Bezencon
# Date: Aug 27th, 2014
# Website: https://www.linuxliteos.com
#-----------------------------------------------------------------------------------------

# Main window dialogue.
INSTALLER_TITLE="Linux Lite Updates
-----------------------------------------------------------------------------------------------------------
We will now check for updates for Linux Lite.

Please make sure all software installation programs like
Synaptic Package Manager and Gdebi are closed before proceeding.

When you click on Yes, this window will close and the updates will begin.

-----------------------------------------------------------------------------------------------------------
Click on Yes to continue or No to cancel the updates process."

# Call the zenity window icon location.
INSTALL_ICON="/usr/share/icons/zenity-llcc.png"
APPNAME="Linux Lite"
       
        zenity --question --title="$APPNAME Updates" --window-icon="${INSTALL_ICON}" --text="${INSTALLER_TITLE}"

                if [ "$?" -eq "0" ]; then

x=$( gksudo -g --message 'To update package lists your password is required. Enter your password, or press Cancel.' "stdbuf -oL /bin/bash \-c '(sudo apt-get update && sudo apt-get upgrade \-y && sudo apt-get autoremove \-y ) 2>&1 | tee /var/log/llupdates.log'" |
stdbuf -oL sed -n -e '/\[*$/ s/^/# /p' -e '/\*$/ s/^/# /p'|
zenity --progress --title="Updating" --pulsate \
--width=600 --auto-close )

                                if [ "${PIPESTATUS[0]}" -ne "0" ]; then
                       
                                        zenity --error \
                                        --title="Error" --text="$APPNAME Updates have failed."
                                        exit 0
                                fi

                else

                                        exit 0
                fi

PROCEED=$(zenity --question --title="$APPNAME Updates" --window-icon=/usr/share/icons/zenity-llcc.png --text="Updates have finished installing.\n\nWould you like to view the $APPNAME Updates log?"; echo $?)
if [ ${PROCEED} -eq 1 ]; then
    zenity --info --title="$APPNAME Updates Complete" --window-icon="${INSTALL_ICON}" --text="$APPNAME Updates Complete."
    exit;
else
    leafpad /var/log/llupdates.log
fi

exit 0

# zenity --info --title="$APPNAME Updates" --window-icon=/usr/share/icons/zenity-llcc.png --text="$APPNAME Updates have been installed.\n\nSee /var/log/liteupdates.log and /var/log/liteupgrades.log\nfor more information."

# exit 0
Reply


Messages In This Thread
Re: A GUI tool to install additional software in Linux Lite 2.0 - by Valtam - 08-27-2014, 08:50 PM
Re: Lite Software - Suggestions welcomed - by crismblog - 10-07-2014, 05:48 PM
Re: Lite Software - Suggestions welcomed - by nvm - 04-06-2020, 08:21 AM

Forum Jump:


Users browsing this thread: 6 Guest(s)