From 6c742030b413b87f477b34b4e354bf53be57bc34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 30 May 2017 14:10:21 +0300 Subject: [PATCH] Pass filename as maxpasswd argument The 2.0 version of maxpasswd requires that the filename is given as the first argument. Only 2.1 and newer versions check for the default key file. --- maxscale-system-test/mxs822_maxpasswd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxscale-system-test/mxs822_maxpasswd.cpp b/maxscale-system-test/mxs822_maxpasswd.cpp index 0d3d1c9ef..483fab4b7 100644 --- a/maxscale-system-test/mxs822_maxpasswd.cpp +++ b/maxscale-system-test/mxs822_maxpasswd.cpp @@ -31,7 +31,7 @@ void try_password(TestConnections* Test, char * pass) */ Test->tprintf("Encrypting password: %s", pass); Test->set_timeout(30); - int rc = Test->ssh_maxscale(true, "maxpasswd '%s' | tr -dc '[:xdigit:]' > /tmp/pw.txt && " + int rc = Test->ssh_maxscale(true, "maxpasswd /var/lib/maxscale/ '%s' | tr -dc '[:xdigit:]' > /tmp/pw.txt && " "sed -i 's/user=.*/user=test/' /etc/maxscale.cnf && " "sed -i \"s/passwd=.*/passwd=$(cat /tmp/pw.txt)/\" /etc/maxscale.cnf && " "service maxscale restart && "