No need to start service here
This commit is contained in:
parent
8369cf27da
commit
c11f50f009
|
@ -4,7 +4,10 @@
|
||||||
# and secure MariaDB installation
|
# and secure MariaDB installation
|
||||||
#
|
#
|
||||||
|
|
||||||
|
INITDONE="/etc/eole/.galera"
|
||||||
|
|
||||||
[[ "$(CreoleGet dbEnable)" == "non" ]] && exit 0
|
[[ "$(CreoleGet dbEnable)" == "non" ]] && exit 0
|
||||||
|
[[ -e ${INITDONE} ]] && exit 0
|
||||||
|
|
||||||
ROLE=$(CreoleGet dbClusterPosition 'Leader')
|
ROLE=$(CreoleGet dbClusterPosition 'Leader')
|
||||||
SECURE_CMD="mysql_secure_installation"
|
SECURE_CMD="mysql_secure_installation"
|
||||||
|
@ -17,7 +20,6 @@ logfile="${logdir}/maria-init.log"
|
||||||
|
|
||||||
if [[ ${ROLE} == "Leader" ]]
|
if [[ ${ROLE} == "Leader" ]]
|
||||||
then
|
then
|
||||||
service mariadb start
|
|
||||||
${passwd} ${PASSWORD}
|
${passwd} ${PASSWORD}
|
||||||
|
|
||||||
# Run secure installation script
|
# Run secure installation script
|
||||||
|
@ -30,7 +32,8 @@ y
|
||||||
y
|
y
|
||||||
y
|
y
|
||||||
__EOF__
|
__EOF__
|
||||||
service mariadb stop
|
touch ${INITDONE}
|
||||||
|
exit ${?}
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue