Commit 05b8d8f9 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add sudo when calling yum

parent cba14153
......@@ -35,7 +35,7 @@ function yumPackages(){
# ---------------------------------------------------------------
# get custom status
function yumStatus(){
if ! /usr/bin/yum --bugfix check-update 2>&1 | grep security; then
if ! sudo /usr/bin/yum --bugfix check-update 2>&1 | grep security; then
echo "Ooops - no output from [/usr/bin/yum --bugfix check-update]"
fi
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment