Don't run script if db is disabled

This commit is contained in:
Philippe Caseiro 2018-05-09 14:25:25 +02:00
parent d04a86aedd
commit 8369cf27da

View File

@ -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)