mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update INSTALL.sh
This commit is contained in:
parent
66c71b77b1
commit
fb9317a0a5
11
INSTALL.sh
11
INSTALL.sh
@ -642,6 +642,13 @@ run_mysql_docker_container() {
|
|||||||
# set random password
|
# set random password
|
||||||
MYSQL_ROOT_PASSWORD=$(openssl rand -base64 -hex 9)
|
MYSQL_ROOT_PASSWORD=$(openssl rand -base64 -hex 9)
|
||||||
|
|
||||||
|
if [ "$REPAIR" = true ]; then
|
||||||
|
docker stop openpanel_mysql
|
||||||
|
docker rm openpanel_mysql
|
||||||
|
docker volume rm openpanel_mysql
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# run the container
|
# run the container
|
||||||
docker pull mysql > /dev/null 2>&1
|
docker pull mysql > /dev/null 2>&1
|
||||||
docker run -d -p 3306:3306 --name openpanel_mysql \
|
docker run -d -p 3306:3306 --name openpanel_mysql \
|
||||||
@ -657,6 +664,10 @@ run_mysql_docker_container() {
|
|||||||
# show password
|
# show password
|
||||||
echo "Generated MySQL password: $MYSQL_ROOT_PASSWORD"
|
echo "Generated MySQL password: $MYSQL_ROOT_PASSWORD"
|
||||||
|
|
||||||
|
if [ "$REPAIR" = true ]; then
|
||||||
|
rm /etc/my.cnf
|
||||||
|
fi
|
||||||
|
|
||||||
ln -s /usr/local/admin/db.cnf /etc/my.cnf
|
ln -s /usr/local/admin/db.cnf /etc/my.cnf
|
||||||
|
|
||||||
# Update configuration files with new password
|
# Update configuration files with new password
|
||||||
|
Loading…
Reference in New Issue
Block a user