Skip to content
Snippets Groups Projects

add sudo when calling yum

Merged Hahn Axel (hahn) requested to merge 5419-update-check-packages2install into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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
}
Loading