diff options
author | Ade Lee <alee@redhat.com> | 2013-10-09 11:40:22 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2013-10-09 23:10:25 -0400 |
commit | cdbfab49a928b4194fe8f514bc4053e8105dfb78 (patch) | |
tree | 6e68b63f4d3d3fe9dee183bd7141cf2513ac2d71 /base/server/upgrade/10.1.0 | |
parent | dfbc59ad7c6b8285b42b249328db3211e00b6a5f (diff) | |
download | pki-cdbfab49a928b4194fe8f514bc4053e8105dfb78.tar.gz pki-cdbfab49a928b4194fe8f514bc4053e8105dfb78.tar.xz pki-cdbfab49a928b4194fe8f514bc4053e8105dfb78.zip |
Add upgrade file for auth.properties
Also moved 10.1 version upgrade scripts to 10.0.99.
Diffstat (limited to 'base/server/upgrade/10.1.0')
-rwxr-xr-x | base/server/upgrade/10.1.0/01-FixJavaOpts | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/base/server/upgrade/10.1.0/01-FixJavaOpts b/base/server/upgrade/10.1.0/01-FixJavaOpts deleted file mode 100755 index d89f7b425..000000000 --- a/base/server/upgrade/10.1.0/01-FixJavaOpts +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/python -# Authors: -# Ade Lee <alee@redhat.com> -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Copyright (C) 2013 Red Hat, Inc. -# All rights reserved. -# - -import os -import re -import pki.server.upgrade - - -class FixJavaOpts(pki.server.upgrade.PKIServerUpgradeScriptlet): - - def __init__(self): - self.message = 'Fix JAVA_OPTS in tomcat startup' - - def upgrade_instance(self, instance): - fname = "/etc/sysconfig/" + instance.name - with open(fname, "r") as infile: - lines = infile.readlines() - with open(fname, "w") as outfile: - for line in lines: - outfile.write(re.sub(r'\$JAVA_OPTS *', '', line)) - |