Fix mysqlmon log copying

The backup file required superuser permissions.
This commit is contained in:
Markus Mäkelä 2018-10-03 12:46:54 +03:00
parent dad4f55ee6
commit 321435b80e
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -23,7 +23,7 @@ void get_output(TestConnections& test)
test.tprintf("MaxScale output:");
}
output = test.maxscales->ssh_node_output(0,
"cat /var/log/maxscale/maxscale.log | tee -a /var/log/maxscale/maxscale_backup.log && "
"cat /var/log/maxscale/maxscale.log | sudo tee -a /var/log/maxscale/maxscale_backup.log && "
"sudo truncate -s 0 /var/log/maxscale/maxscale.log",
true, &ec);
if (test.verbose)