Fixing password script location
This commit is contained in:
parent
f740f8b2bc
commit
1cb8566c7b
|
@ -7,17 +7,18 @@
|
||||||
ROLE=$(CreoleGet dbClusterPosition)
|
ROLE=$(CreoleGet dbClusterPosition)
|
||||||
SECURE_CMD="mysql_secure_installation"
|
SECURE_CMD="mysql_secure_installation"
|
||||||
PASSWORD=$(pwgen -1 10)
|
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}
|
${passwd} ${PASSWORD}
|
||||||
|
|
||||||
# Run secure installation script
|
# Run secure installation script
|
||||||
${SECURE_CMD} <<__EOF__
|
${SECURE_CMD} > ${logfile} 2>&1 <<__EOF__
|
||||||
${oldPass}
|
${PASSWORD}
|
||||||
y
|
y
|
||||||
n
|
n
|
||||||
y
|
y
|
||||||
y
|
y
|
||||||
y
|
y
|
||||||
y
|
y
|
||||||
__EOF__
|
__EOF__
|
||||||
|
|
Loading…
Reference in New Issue