Update INSTALL.sh

This commit is contained in:
Stefan Pejcic
2024-11-19 18:43:17 +01:00
committed by GitHub
parent ec4c0225ed
commit b856e996f3

View File

@@ -846,7 +846,7 @@ docker_compose_up(){
echo "MYSQL_ROOT_PASSWORD = $MYSQL_ROOT_PASSWORD"
# save it to /etc/my.cnf
rm -rf /etc/my.cnf > /dev/null 2>&1 # on centos we get default mycnf..
rm -rf /etc/my.cnf > /dev/null 2>&1 # on centos we get default mycnf, and on repair we already have symlink
ln -s /etc/openpanel/mysql/db.cnf /etc/my.cnf > /dev/null 2>&1
sed -i 's/password = .*/password = '"${MYSQL_ROOT_PASSWORD}"'/g' ${ETC_DIR}mysql/db.cnf > /dev/null 2>&1