0 Members and 11 Guests are viewing this topic.
The logs open empty, is that expected?
#!/bin/bash#-----------------------------------------------------------------------------------------# Name: Linux Lite Updates# Description: A GUI tool to easily install Updates in Linux Lite.# Authors: Misko_2083, 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 likeSynaptic 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" ]; thenx=$( gksudo -g --message 'To update package lists your password is required. Enter your password, or press Cancel.' "stdbuf -oL sh /home/jerry/updates" | stdbuf -oL sed -n -e '/\[*$/ s/^/# /p' -e '/\*$/ s/^/# /p' | zenity --progress --title="Updating..." --window-icon="${INSTALL_ICON}" --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 fiPROCEED=$(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 Update logs?"; 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/liteupdates.log | leafpad /var/log/liteupgrades.logfiexit 0
#!/bin/bashsudo rm -rf /var/log/liteupdates.log && sudo rm -rf /var/log/liteupgrades.logsudo apt-get update 2>&1 | tee /var/log/liteupdates.log && sudo apt-get upgrade -y 2>&1 | tee /var/log/liteupgrades.log
./betaupdates
#!/bin/bash# Linux lite update scriptx=$( gksudo -g --message 'To update package lists your password is required. Enter your password, or press Cancel.' "stdbuf -oL sudo apt-get update" | stdbuf -oL sed -n -e '/\[*$/ s/^/# /p' -e '/\*$/ s/^/# /p'| zenity --progress --title="Updating" --pulsate \ --width=600 --auto-close )
#!/bin/bash# Linux lite upgrade scripty=$( gksudo -g --message 'To install updates your password is required. Enter your password, or press Cancel.' "stdbuf -oL sudo apt-get -y upgrade" | stdbuf -oL sed -n -e '/\[*$/ s/^/# /p' -e '/\.\.\.$/ s/^/# /p' -e '/\*$/ s/^/# /p' | zenity --progress --title="Upgrading" --pulsate \ --width=600 )
--text="<b>Click</b> on the <i>program</i> you wish to <u>install</u>, then <i><b>click</b></i> the <u><b>Install button</b></u>. Sort Categories by clicking on the column."
Next target: Install Updates with GUI interface! +1 misko_2083
stdbuf -oL sudo apt-get install -y google-chrome-stable | stdbuf -oL sed -n '/\.\.\.$/ s/^/# /p' | zenity --progress --title="Installing Google Chrome" --pulsate \ --width=450 --auto-close