diff --git a/preservice/25-bdd-init b/preservice/25-bdd-init index 964502b..459b236 100644 --- a/preservice/25-bdd-init +++ b/preservice/25-bdd-init @@ -4,7 +4,10 @@ # and secure MariaDB installation # +INITDONE="/etc/eole/.galera" + [[ "$(CreoleGet dbEnable)" == "non" ]] && exit 0 +[[ -e ${INITDONE} ]] && exit 0 ROLE=$(CreoleGet dbClusterPosition 'Leader') SECURE_CMD="mysql_secure_installation" @@ -17,7 +20,6 @@ logfile="${logdir}/maria-init.log" if [[ ${ROLE} == "Leader" ]] then - service mariadb start ${passwd} ${PASSWORD} # Run secure installation script @@ -30,7 +32,8 @@ y y y __EOF__ - service mariadb stop + touch ${INITDONE} + exit ${?} else exit 0 fi \ No newline at end of file