42
42
if [[ $? -ne 0 ]]
43
43
then
44
44
bell_sound
45
- pass=$( zenity --password --width=320 --height=150 --timeout=10 --title=" GUI Update & Upgrade" --auto-kill )
45
+ pass=$( zenity --password --width=320 --height=150 --timeout=10 --title=" GUI Update & Upgrade" )
46
46
bell_sound
47
47
$pass | sudo apt install zenity -y > error.txt
48
48
85
85
echo " # Removing..."
86
86
echo " $pass " | sudo -S apt-get autoremove -y 1>> success.txt 2>> error.txt
87
87
88
- echo 100
88
+ echo 99
89
89
echo " # All Done!"
90
+ sleep 1
90
91
91
- ) | zenity --title " GUI Update & Upgrade Bash script.." --progress --auto-close --auto-kill --width=320 --height=150 --title=" GUI Update & Upgrade" --time-remaining
92
+ ) | zenity --title " GUI Update & Upgrade Bash script.." --progress --auto-close\
93
+ --auto-kill --width=320 --height=150 --title=" GUI Update & Upgrade" --time-remaining
92
94
bell_sound
93
95
94
96
101
103
else
102
104
bell_sound
103
105
zenity --info --text=" The Update and Upgrade of packages runs successfully!\n There is no Error!" --width=320 --height=150 \
104
- --timeout=0.5 --title=" GUI Update & Upgrade"
106
+ --timeout=1 --title=" GUI Update & Upgrade"
105
107
fi
106
108
107
109
rm -r error.txt
@@ -115,11 +117,22 @@ zenity --question --text="Do you like to security check in your machine?" --widt
115
117
rkhunter --version
116
118
if [[ $? -eq 0 ]]
117
119
then
120
+ ( echo 0
121
+ echo " # Security Check [1] ... "
122
+ echo " $pass " | sudo -S rkhunter --sk --propupd
123
+
124
+
125
+ echo 10
126
+ echo " # Security Check [2] ... "
127
+ echo " $pass " | sudo -S rkhunter --sk -c
128
+
129
+ echo 99
130
+ echo " # Security check successfully done!"
131
+ sleep 1
132
+
133
+ ) | zenity --title " GUI Update & Upgrade Bash script.." --progress --pulsate --auto-close --auto-kill \
134
+ --width=320 --height=150 --title=" GUI Update & Upgrade" --time-remaining
118
135
119
- echo " $pass " | sudo -S rkhunter --sk --propupd | zenity --progress --pulsate --text=" Security checking..." \
120
- --width=320 --height=150 --title=" GUI UPDATE & Upgrade" --auto-close --auto-kill --time-remaining
121
- echo " $pass " | sudo -S rkhunter --sk -c | zenity --progress --pulsate --text=" Security checking..." \
122
- --width=320 --height=150 --title=" GUI UPDATE & Upgrade" --auto-close --auto-kill --time-remaining
123
136
touch temp
124
137
echo -e " The rkhunter security risks.\n" >> temp
125
138
now=$( date +%d%m%Y%r)
0 commit comments