Skip to content
Snippets Groups Projects
Commit 05b8d8f9 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add sudo when calling yum

parent cba14153
No related branches found
No related tags found
1 merge request!20add sudo when calling yum
...@@ -35,7 +35,7 @@ function yumPackages(){ ...@@ -35,7 +35,7 @@ function yumPackages(){
# --------------------------------------------------------------- # ---------------------------------------------------------------
# get custom status # get custom status
function yumStatus(){ 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]" echo "Ooops - no output from [/usr/bin/yum --bugfix check-update]"
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment