Fixing password script location

This commit is contained in:
Philippe Caseiro 2018-04-12 16:33:44 +02:00
parent f740f8b2bc
commit 1cb8566c7b
1 changed files with 5 additions and 4 deletions

View File

@ -7,13 +7,14 @@
ROLE=$(CreoleGet dbClusterPosition)
SECURE_CMD="mysql_secure_installation"
PASSWORD=$(pwgen -1 10)
passwd="/usr/share/eole/scripts/mariadbPwd"
passwd="/usr/share/eole/sbin/mariadbPwd"
logfile="/var/log/eole/maria-init.log"
${passwd} ${PASSWORD}
# Run secure installation script
${SECURE_CMD} <<__EOF__
${oldPass}
${SECURE_CMD} > ${logfile} 2>&1 <<__EOF__
${PASSWORD}
y
n
y