[Bucardo-general] Bucardo install fails

Greg Sabino Mullane greg at endpoint.com
Wed Nov 29 17:37:15 UTC 2017


It looks like this is already fixed in HEAD. If you can try that out, it would be 
great, but if you can't, try this quick patch:

diff --git a/bucardo b/bucardo
index e1816f1..8e433ef 100755
--- a/bucardo
+++ b/bucardo
@@ -8979,7 +8979,7 @@ sub install {
         }
     }
 
-    if ($res !~ /(\d+)\.(\d+)(\S+)/) {
+    if ($res !~ /(\d+)\.(\d+)/) {
         print "-->Sorry, unable to connect to the database\n\n";
         warn $delayed_warning;
         exit 1 if $bcargs->{batch};
@@ -8988,10 +8988,7 @@ sub install {
 
     ## At this point, we assume a good connection
     ## Assign the version variables
-    my ($maj,$min,$rev) = ($1,$2,$3);
-    ## We need to be able to handle things such as 9.2devel
-    $rev =~ s/^\.//;
-    $rev =~ s/(\d+)\.\d+/$1/;
+    my ($maj,$min) = ($1,$2);
 
     $QUIET or print "Postgres version is: $maj.$min\n";
 


-- 
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 2529 DF6A B8F7 9407 E944  45B4 BC9B 9067 1496 4AC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <https://mail.endcrypt.com/pipermail/bucardo-general/attachments/20171129/83523db0/attachment.sig>


More information about the Bucardo-general mailing list