Update 'mysql-8.0.sh'
This commit is contained in:
@@ -23,12 +23,11 @@ debconf-set-selections <<< "mysql-community-server mysql-community-server/root-p
|
||||
debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password $password"
|
||||
debconf-set-selections <<< "mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)"
|
||||
|
||||
wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb -O mysql-apt-conf.deb
|
||||
dpkg -i mysql-apt-conf.deb
|
||||
wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb -O /tmp/mysql-apt-conf.deb
|
||||
dpkg -i /tmp/mysql-apt-conf.deb
|
||||
apt-get update
|
||||
apt-get install -y mysql-server
|
||||
|
||||
|
||||
##-----------------##
|
||||
# PhpMyAdmin #
|
||||
##-----------------##
|
||||
@@ -47,12 +46,14 @@ wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config
|
||||
wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/phpmyadmin/config.footer.inc.php -O /etc/phpmyadmin/config.footer.inc.php
|
||||
wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/phpmyadmin/config.header.inc.php -O /etc/phpmyadmin/config.header.inc.php
|
||||
wget https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Web/raw/branch/master/config/phpmyadmin/config.inc.php -O /etc/phpmyadmin/config.inc.php
|
||||
touch /var/lib/phpmyadmin/config.inc.php
|
||||
touch /etc/phpmyadmin/config-db.php
|
||||
|
||||
mkdir -p /var/lib/phpmyadmin/tmp/
|
||||
chown -R www-data:www-data /var/lib/phpmyadmin/
|
||||
|
||||
blowsec=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
|
||||
echo "\$cfg['blowfish_secret'] = '$blowsec';" > /var/lib/phpmyadmin/blowfish_secret.inc.php
|
||||
echo "\$cfg['blowfish_secret'] = '$blowsec';" >> /etc/phpmyadmin/config.inc.php #/var/lib/phpmyadmin/blowfish_secret.inc.php
|
||||
|
||||
mysql -u root --password="$password" < /usr/share/phpmyadmin/sql/create_tables.sql
|
||||
|
||||
|
||||
Reference in New Issue
Block a user