post_thaw script (MySQL)

#!/bin/sh
#post-thaw-script
date >> '/scripts/post_root.log'
echo -e "\n attempting to run post-thaw script for MySQL as root user\n" >> /scripts/post_root.log
if [ "$(id -u)" -eq "0" ]; then
python '/scripts/unquiesce.py'
if [ $? -ne 0 ]
then
  date >> '/scripts/post_root.log'
  echo -e "\n Unable to unquiesce MySQL DB\n" >> '/scripts/post_root.log'
  exit 1
fi
else
date >> '/scripts/post_root.log'
echo -e "not root user\n" >> '/scripts/post_root.log'
fi

Loading...