summaryrefslogtreecommitdiffstats
path: root/base/setup
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2013-05-20 22:30:38 -0400
committerEndi Sukma Dewata <edewata@redhat.com>2013-05-30 12:00:18 -0400
commit3e1b7bd930ceb99a9d2baeb9c69432e75ff3b2c6 (patch)
treef99e93afd84bbb0311109a231bd0ae746e5f09ec /base/setup
parent8c4d4ae8466ddc59233b477153e9f7a2355ae37f (diff)
downloadpki-3e1b7bd930ceb99a9d2baeb9c69432e75ff3b2c6.tar.gz
pki-3e1b7bd930ceb99a9d2baeb9c69432e75ff3b2c6.tar.xz
pki-3e1b7bd930ceb99a9d2baeb9c69432e75ff3b2c6.zip
Renamed PORT and UNSECURE_PORT into PKI_UNSECURE_PORT.
The PORT and UNSECURE_PORT variables in RA and TPS has been renamed into PKI_UNSECURE_PORT to match the Tomcat-based subsystems.
Diffstat (limited to 'base/setup')
-rwxr-xr-xbase/setup/pkicreate9
-rw-r--r--base/setup/scripts/functions22
2 files changed, 15 insertions, 16 deletions
diff --git a/base/setup/pkicreate b/base/setup/pkicreate
index 590db12db..9dffb8d98 100755
--- a/base/setup/pkicreate
+++ b/base/setup/pkicreate
@@ -265,7 +265,6 @@ my $HTTPD_CONF = "HTTPD_CONF";
my $LIB_PREFIX = "LIB_PREFIX";
my $NSS_CONF = "NSS_CONF";
my $OBJ_EXT = "OBJ_EXT";
-my $PORT = "PORT";
my $PROCESS_ID = "PROCESS_ID";
my $NON_CLIENTAUTH_SECURE_PORT = "NON_CLIENTAUTH_SECURE_PORT";
my $SECURITY_LIBRARIES = "SECURITY_LIBRARIES";
@@ -289,6 +288,7 @@ my $PKI_LOCKDIR = "PKI_LOCKDIR";
my $PKI_INSTANCE_ID_SLOT = "PKI_INSTANCE_ID";
my $PKI_REGISTRY_FILE_SLOT = "PKI_REGISTRY_FILE";
my $PKI_SECURE_PORT_SLOT = "PKI_SECURE_PORT";
+my $PKI_UNSECURE_PORT_SLOT = "PKI_UNSECURE_PORT";
# Template slot constants (CA, KRA, OCSP, TKS)
my $INSTALL_TIME = "INSTALL_TIME";
@@ -308,7 +308,6 @@ my $PKI_ADMIN_SECURE_PORT_SLOT = "PKI_ADMIN_SECURE_PORT";
my $PKI_SERVER_XML_CONF = "PKI_SERVER_XML_CONF";
my $PKI_SUBSYSTEM_DIR_SLOT = "PKI_SUBSYSTEM_DIR";
my $PKI_SUBSYSTEM_TYPE_SLOT = "PKI_SUBSYSTEM_TYPE";
-my $PKI_UNSECURE_PORT_SLOT = "PKI_UNSECURE_PORT";
my $PKI_USER_SLOT = "PKI_USER";
my $TOMCAT_SERVER_PORT_SLOT = "TOMCAT_SERVER_PORT";
my $TOMCAT_PIDFILE = "TOMCAT_PIDFILE";
@@ -2152,9 +2151,9 @@ sub process_pki_directories
#
# Example, if the src template contained this line:
#
-# Open port [PORT] on your firewall.
+# Open port [PKI_UNSECURE_PORT] on your firewall.
#
-# And the substitutions hash was this {'PORT' => '1234'}
+# And the substitutions hash was this {'PKI_UNSECURE_PORT' => '1234'}
#
# Then the dst file contents will look like this:
#
@@ -2271,7 +2270,7 @@ sub process_pki_templates
$slot_hash{$LIB_PREFIX} = $lib_prefix;
$slot_hash{$NSS_CONF} = $nss_conf_instance_file_path;
$slot_hash{$OBJ_EXT} = $obj_ext;
- $slot_hash{$PORT} = $unsecure_port;
+ $slot_hash{$PKI_UNSECURE_PORT_SLOT} = $unsecure_port;
$slot_hash{$PROCESS_ID} = $$;
$slot_hash{$PKI_SECURE_PORT_SLOT} = $secure_port;
$slot_hash{$NON_CLIENTAUTH_SECURE_PORT} = $non_clientauth_secure_port;
diff --git a/base/setup/scripts/functions b/base/setup/scripts/functions
index 3f7f9553d..82988fc10 100644
--- a/base/setup/scripts/functions
+++ b/base/setup/scripts/functions
@@ -329,7 +329,7 @@ get_pki_status_definitions_ra()
{
# establish well-known strings
total_ports=0
- UNSECURE_PORT=""
+ PKI_UNSECURE_PORT=""
CLIENTAUTH_PORT=""
NON_CLIENTAUTH_PORT=""
@@ -347,11 +347,11 @@ get_pki_status_definitions_ra()
# Iterate over Listen statements
for port in `sed -n 's/^[ \t]*Listen[ \t][ \t]*\([^ \t][^ \t]*\)/\1/p' ${PKI_HTTPD_CONF}`; do
- UNSECURE_PORT=$port
+ PKI_UNSECURE_PORT=$port
if [ $total_ports -eq 0 ]; then
- echo " Unsecure Port = http://${PKI_SERVER_NAME}:${UNSECURE_PORT}"
+ echo " Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}"
else
- echo "ERROR: extra Unsecure Port = http://${PKI_SERVER_NAME}:${UNSECURE_PORT}"
+ echo "ERROR: extra Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}"
fi
total_ports=`expr ${total_ports} + 1`
@@ -359,7 +359,7 @@ get_pki_status_definitions_ra()
# Iterate over Listen statements
for port in `sed -n 's/^[ \t]*Listen[ \t][ \t]*\([^ \t][^ \t]*\)/\1/p' ${PKI_NSS_CONF}`; do
- UNSECURE_PORT=$port
+ PKI_UNSECURE_PORT=$port
if [ $total_ports -eq 1 ]; then
CLIENTAUTH_PORT=$port
echo " Secure Clientauth Port = https://${PKI_SERVER_NAME}:${CLIENTAUTH_PORT}"
@@ -379,7 +379,7 @@ get_pki_status_definitions_tps()
{
# establish well-known strings
total_ports=0
- UNSECURE_PORT=""
+ PKI_UNSECURE_PORT=""
CLIENTAUTH_PORT=""
NON_CLIENTAUTH_PORT=""
@@ -397,14 +397,14 @@ get_pki_status_definitions_tps()
# Iterate over Listen statements
for port in `sed -n 's/^[ \t]*Listen[ \t][ \t]*\([^ \t][^ \t]*\)/\1/p' ${PKI_HTTPD_CONF}`; do
- UNSECURE_PORT=$port
+ PKI_UNSECURE_PORT=$port
if [ $total_ports -eq 0 ]; then
- echo " Unsecure Port = http://${PKI_SERVER_NAME}:${UNSECURE_PORT}/cgi-bin/so/enroll.cgi"
+ echo " Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}/cgi-bin/so/enroll.cgi"
echo " (ESC Security Officer Enrollment)"
- echo " Unsecure Port = http://${PKI_SERVER_NAME}:${UNSECURE_PORT}/cgi-bin/home/index.cgi"
+ echo " Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}/cgi-bin/home/index.cgi"
echo " (ESC Phone Home)"
else
- echo "ERROR: extra Unsecure Port = http://${PKI_SERVER_NAME}:${UNSECURE_PORT}"
+ echo "ERROR: extra Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}"
fi
total_ports=`expr ${total_ports} + 1`
@@ -412,7 +412,7 @@ get_pki_status_definitions_tps()
# Iterate over Listen statements
for port in `sed -n 's/^[ \t]*Listen[ \t][ \t]*\([^ \t][^ \t]*\)/\1/p' ${PKI_NSS_CONF}`; do
- UNSECURE_PORT=$port
+ PKI_UNSECURE_PORT=$port
if [ $total_ports -eq 1 ]; then
CLIENTAUTH_PORT=$port
echo " Secure Clientauth Port = https://${PKI_SERVER_NAME}:${CLIENTAUTH_PORT}/cgi-bin/sow/welcome.cgi"