#!/bin/bash

if [[ /etc/zabbix/.my.cnf -ot /home/eig1wp11/public_html/wp-config.php ]]; then
	cat > /etc/zabbix/.my.cnf <<EOF
[client]
user="eig1wp11_eigtest"
password="$(grep PASS /home/eig1wp11/public_html/wp-config.php|cut -d"'" -f4)"
EOF
fi
