Skip to content

Commit

Permalink
Create '/etc/yum/vars' if it doesn't exist
Browse files Browse the repository at this point in the history
On older systems, /etc/yum/vars is not created by the yum package.  In
fact, /etc/yum/vars isn't supported on older systems anyway.  This patch
will optionally create /etc/yum/vars before setting releasever.
  • Loading branch information
jlaska authored and blomquisg committed Apr 12, 2012
1 parent 8092542 commit ccd78bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configserver/examples/katello-register.xml
Expand Up @@ -205,6 +205,8 @@ def audrey_var(name, default=None):
def setup_releasever():
if not os.path.isdir('/etc/yum/vars'):
os.mkdir('/etc/yum/vars')
fp = open("/etc/yum/vars/releasever", "r+")
fp.write(audrey_var("RELEASEVER"))
fp.close()
Expand Down

0 comments on commit ccd78bb

Please sign in to comment.