From 8369cf27da222fcc8a94e62fe7503e752c78dd23 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 9 May 2018 14:25:25 +0200 Subject: [PATCH] Don't run script if db is disabled --- preservice/25-bdd-init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/preservice/25-bdd-init b/preservice/25-bdd-init index cc88378..964502b 100644 --- a/preservice/25-bdd-init +++ b/preservice/25-bdd-init @@ -4,6 +4,8 @@ # and secure MariaDB installation # +[[ "$(CreoleGet dbEnable)" == "non" ]] && exit 0 + ROLE=$(CreoleGet dbClusterPosition 'Leader') SECURE_CMD="mysql_secure_installation" PASSWORD=$(pwgen -1 10)