summaryrefslogtreecommitdiffstats
path: root/base/setup
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@redhat.com>2012-05-23 18:59:06 -0700
committerMatthew Harmsen <mharmsen@redhat.com>2012-05-25 14:59:48 -0700
commit4a263b8db27208413acd0f038ea67629d5ee27bb (patch)
tree8c747215e522100304e9afced96d0720bd49501d /base/setup
parent2408bec41a56378fcf942a68a1ab290464c001d7 (diff)
downloadpki-4a263b8db27208413acd0f038ea67629d5ee27bb.tar.gz
pki-4a263b8db27208413acd0f038ea67629d5ee27bb.tar.xz
pki-4a263b8db27208413acd0f038ea67629d5ee27bb.zip
PKI Deployment Scriptlets
* Integration of Tomcat 7 * Addition of centralized 'pki-tomcatd' systemd functionality to the PKI Deployment strategy * Removal of 'pki_flavor' attribute
Diffstat (limited to 'base/setup')
-rwxr-xr-xbase/setup/pkicommon.pm8
-rwxr-xr-xbase/setup/pkicreate7
-rw-r--r--base/setup/scripts/functions2
3 files changed, 6 insertions, 11 deletions
diff --git a/base/setup/pkicommon.pm b/base/setup/pkicommon.pm
index b5ef8e140..4b68ffa7e 100755
--- a/base/setup/pkicommon.pm
+++ b/base/setup/pkicommon.pm
@@ -27,7 +27,7 @@ use Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(
$lib_prefix $obj_ext $path_sep $tmp_dir
- $pki_flavor $pki_registry_path
+ $pki_registry_path
$verbose $dry_run $hostname $default_hardware_platform
$default_system_binaries $default_lockdir $default_system_libraries $default_system_user_binaries
$default_system_user_libraries
@@ -164,7 +164,6 @@ our %selinux_ports = ();
# Shared Default Values
##############################################################
-our $pki_flavor = undef;
our $pki_registry_path = undef;
our $default_hardware_platform = undef;
@@ -204,11 +203,10 @@ my $is_IPv6 = 0;
# Compute "hardware platform" of Operating System
if ($^O eq "linux") {
- $pki_flavor = "pki";
$default_registry_path = "/etc/sysconfig";
- $pki_registry_path = "$default_registry_path/$pki_flavor";
+ $pki_registry_path = "$default_registry_path/pki";
$default_initscripts_path = "/etc/rc.d/init.d";
- $default_lockdir = "/var/lock/$pki_flavor";
+ $default_lockdir = "/var/lock/pki";
$default_hardware_platform = `uname -i`;
$default_hardware_platform =~ s/\s+$//g;
chomp($default_hardware_platform);
diff --git a/base/setup/pkicreate b/base/setup/pkicreate
index b5453f2f6..b5568f01c 100755
--- a/base/setup/pkicreate
+++ b/base/setup/pkicreate
@@ -102,7 +102,7 @@ use lib "/usr/share/pki/scripts";
use pkicommon;
# Establish path to scripts
-my $pki_subsystem_common_area = "/usr/share/$pki_flavor";
+my $pki_subsystem_common_area = "/usr/share/pki";
# make -w happy by suppressing warnings of Global variables used only once
my $suppress = "";
@@ -319,7 +319,6 @@ my $TOMCAT_TLS_CIPHERS = "TOMCAT_TLS_CIPHERS";
my $TOMCAT_INSTANCE_COMMON_LIB = "TOMCAT_INSTANCE_COMMON_LIB";
my $TOMCAT_LOG_DIR = "TOMCAT_LOG_DIR";
my $PKI_INSTANCE_INITSCRIPT = "PKI_INSTANCE_INITSCRIPT";
-my $PKI_FLAVOR_SLOT = "PKI_FLAVOR";
my $PKI_UNSECURE_PORT_CONNECTOR_NAME_SLOT = "PKI_UNSECURE_PORT_CONNECTOR_NAME";
my $PKI_SECURE_PORT_CONNECTOR_NAME_SLOT = "PKI_SECURE_PORT_CONNECTOR_NAME";
my $PKI_ADMIN_SECURE_PORT_CONNECTOR_NAME_SLOT = "PKI_ADMIN_SECURE_PORT_CONNECTOR_NAME";
@@ -1480,7 +1479,7 @@ sub initialize_subsystem_paths
$applets_subsystem_path = $pki_subsystem_path
. "/" . $applets_base_subsystem_dir;
$bin_subsystem_path = $default_system_user_libraries
- . "/" . $pki_flavor
+ . "/" . "pki"
. "/" . $subsystem_type;
$samples_subsystem_path = $pki_subsystem_path
. "/" . $samples_base_subsystem_dir;
@@ -2438,7 +2437,6 @@ sub process_pki_templates
$slot_hash{$SYSTEM_USER_LIBRARIES} = $default_system_user_libraries;
$slot_hash{$TMP_DIR} = $tmp_dir;
$slot_hash{$TPS_DIR} = $pki_subsystem_path;
- $slot_hash{$PKI_FLAVOR_SLOT} = $pki_flavor;
$slot_hash{$PKI_RANDOM_NUMBER_SLOT} = $random;
$slot_hash{$PKI_LOCKDIR} = $pki_lockdir_path;
if (is_Fedora() || (is_RHEL() && (! is_RHEL4()))) {
@@ -2586,7 +2584,6 @@ LoadModule nss_module /opt/fortitude/modules.local/libmodnss.so
$proxy_unsecure_port : "";
$slot_hash{$PKI_WEBAPPS_NAME} = $webapps_base_subsystem_dir;
- $slot_hash{$PKI_FLAVOR_SLOT} = $pki_flavor;
$slot_hash{$TOMCAT_SERVER_PORT_SLOT} = $tomcat_server_port;
$slot_hash{$TOMCAT_PIDFILE} = $tomcat6_instance_pid_file_path;
$slot_hash{$TOMCAT_CFG} = $tomcat6_conf_instance_file_path;
diff --git a/base/setup/scripts/functions b/base/setup/scripts/functions
index 516bf32e2..62dc20694 100644
--- a/base/setup/scripts/functions
+++ b/base/setup/scripts/functions
@@ -154,7 +154,7 @@ usage_systemd()
echo -n "|try-restart"
echo -n "|reload"
echo -n "|status} "
- echo -n "subsytem-type "
+ echo -n "subsystem-type "
echo -n "[instance-name]"
echo
echo