diff --git a/build/deployOn b/build/deployOn new file mode 100755 index 0000000..05be1cf --- /dev/null +++ b/build/deployOn @@ -0,0 +1,12 @@ +#!/bin/bash +set -xv + +_DIR=$(dirname `readlink -f $0`) + + +ssh $1 mkdir /images/mysqltuner +rsync -avz ${_DIR}/.. $1:/images/mysqltuner + +if [ "$2" = "run" ];then + ssh $1 "su - mysql -c 'cd /images/mysqltuner; perl mysqltuner.pl --verbose'" +fi