Re: yum check-updates script not working correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



brian wrote:
> #!/bin/sh
> 
> # Pull in sysconfig settings
> 
> . /etc/sysconfig/yum-check
> 
> 
> if [ -f /var/lock/subsys/yum ]; then
> 
>           if [ ${CHECKONLY} = "yes" ];then
> 
>                  /usr/bin/yum-check
>           fi
>           else
>                  /usr/bin/yum -R 10 -e 0 -d 0 -y update yum
>                  /usr/bin/yum -R 120 -e 0 -d 0 -y update

For starters, there is DEBUG option so turn it ON.

Then for testing, change above code from optional check to mandatory by 
disabling scripts ability to install updates.

There could be something preventing script to get ${CHECKONLY} 
environment variable. Add code to echo that variable, to check for this.

Ljubomir
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux