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
1 changed files with 2 additions and 0 deletions

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)