Fixed tests to be compatible with GCloud VMs

GCloud machines has more strict access rights settings. Derect calls of
'chmod' are needed to make all configuration files (e.g. 'fwf/rules') be
accessable by Maxscale.
This commit is contained in:
Timofey Turenko
2020-01-24 01:15:25 +02:00
parent 4641dc208f
commit 08616692a4
13 changed files with 24 additions and 6 deletions

View File

@ -44,6 +44,7 @@ target=${maxscale_000_whoami}@${maxscale_000_network}:/home/${maxscale_000_whoam
if [ ${maxscale_000_network} != "127.0.0.1" ] ; then
scp -i ${maxscale_000_keyfile} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $source $target
ssh -i $maxscale_000_keyfile -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ${maxscale_000_whoami}@${maxscale_000_network} chmod a+r /home/${maxscale_000_whoami}/cache_rules.json
else
cp $source /home/${maxscale_000_whoami}/cache_rules.json
fi