Fixing init script

This commit is contained in:
Philippe Caseiro 2018-05-09 17:07:19 +02:00
父節點 3102fb5fdb
當前提交 b0f9914eac
共有 1 個文件被更改,包括 10 次插入2 次删除

查看文件

@ -20,6 +20,7 @@ logfile="${logdir}/maria-init.log"
if [[ ${ROLE} == "Leader" ]]
then
service mysql start
${passwd} ${PASSWORD}
# Run secure installation script
@ -32,8 +33,15 @@ y
y
y
__EOF__
touch ${INITDONE}
exit ${?}
if [[ ${?} -eq 0 ]]
then
service mysql stop
touch ${INITDONE}
exit ${?}
else
service mysql stop
exit ${?}
fi
else
exit 0
fi