mirror of
https://github.com/EngineGPDev/Autoinstall.git
synced 2025-01-18 22:02:22 +03:00
Adding install MySQL
This commit is contained in:
parent
92e6b290f3
commit
56ee4f3ed8
20
install.sh
20
install.sh
@ -311,6 +311,26 @@ while true; do
|
|||||||
cd >> "$(dirname "$0")/enginegp_install.log" 2>&1
|
cd >> "$(dirname "$0")/enginegp_install.log" 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Устанавливаем базу данных и phpMyAdmin
|
||||||
|
if ! dpkg-query -W -f='${Status}' "mysql-server" 2>/dev/null | grep -q "install ok installed"; then
|
||||||
|
sudo debconf-set-selections <<EOF
|
||||||
|
mysql-apt-config mysql-apt-config/select-server select mysql-8.0
|
||||||
|
mysql-apt-config mysql-apt-config/select-tools select Enabled
|
||||||
|
mysql-apt-config mysql-apt-config/select-preview select Disabled
|
||||||
|
EOF
|
||||||
|
sudo curl -sSLO https://dev.mysql.com/get/mysql-apt-config_0.8.26-1_all.deb
|
||||||
|
sudo DEBIAN_FRONTEND="noninteractive" dpkg -i mysql-apt-config_0.8.26-1_all.deb
|
||||||
|
sudo apt-get update
|
||||||
|
sudo rm mysql-apt-config_0.8.26-1_all.deb
|
||||||
|
export DEBIAN_FRONTEND="noninteractive"
|
||||||
|
sudo debconf-set-selections <<EOF
|
||||||
|
mysql-community-server mysql-community-server/root-pass password 123456789
|
||||||
|
mysql-community-server mysql-community-server/re-root-pass password 123456789
|
||||||
|
mysql-community-server mysql-server/default-auth-override select Use Strong Password Encryption (RECOMMENDED)
|
||||||
|
EOF
|
||||||
|
sudo apt-get install mysql-server
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Перезапускаем apache
|
# Перезапускаем apache
|
||||||
|
Loading…
Reference in New Issue
Block a user