SCIENTIFIC-LINUX-USERS Archives

May 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chris O'Regan <[log in to unmask]>
Reply To:
Chris O'Regan <[log in to unmask]>
Date:
Tue, 29 May 2012 12:42:09 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
We maintain our own local mirror of SL5 and update our servers from it.
We have created our own repo file in /etc/yum.repos.d/ and have disabled
everything else by setting "enable=1" to "enable=0". We do this instead
of simply deleting them in case we ever need refer to those files.

We have a cfengine script that does this and it has worked perfectly
until SL5.8. It seems that a new repo was introduced in this version
(sl-security-jdk) but the regex that matches the other repos does not
match this one. That is because there is trailing whitespace after the
"enabled=1" in that section.

I have update my regex from "^enable=1$" to "^enabled=1.*$", but I
wonder what that trailing whitespace is doing there in the first
place! ;-)


-- 
Chris O'Regan <[log in to unmask]>
Senior Unix Systems Administrator, Academic IT Services
Faculty of Engineering and Computer Science
Concordia University, Montreal, Canada

ATOM RSS1 RSS2