installer: munge ZEBRA_PASS only when INSTALL_ZEBRA=yes
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 19 Dec 2007 20:29:38 +0000 (14:29 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 19 Dec 2007 20:29:38 +0000 (14:29 -0600)
Makefile.PL

index 114bf3f..c65f839 100644 (file)
@@ -1165,7 +1165,9 @@ sub postamble {
     # quote '$' in the two password parameters
     my %config = %config;
     $config{'DB_PASS'} =~ s/\$/\$\$/g;
-    $config{'ZEBRA_PASS'} =~ s/\$/\$\$/g;
+    if ($config{'INSTALL_ZEBRA'} eq "yes") {
+        $config{'ZEBRA_PASS'} =~ s/\$/\$\$/g;
+    }
 
        # Hereagain, we must alter syntax per platform...
        if ( $^O eq 'MSWin32' ) {