udpate phpMyAdmin install to v5.1.1

This commit is contained in:
Matthew Saunders Brown 2021-08-24 13:38:28 -07:00
parent 721b43541a
commit 4af79477d2

View File

@ -178,28 +178,28 @@ cp mini_sendmail.8.gz /usr/local/share/man/man8
# phpMyAdmin
apt -y install php-bz2 php-tcpdf
cd /usr/local/src
wget https://files.phpmyadmin.net/phpMyAdmin/5.1.0/phpMyAdmin-5.1.0-all-languages.tar.gz
tar zxf phpMyAdmin-5.1.0-all-languages.tar.gz
rm -r phpMyAdmin-5.1.0-all-languages/setup/
if [ -d "phpMyAdmin-5.1.0-all-languages/test/" ]; then
rm -r phpMyAdmin-5.1.0-all-languages/test/
wget https://files.phpmyadmin.net/phpMyAdmin/5.1.1/phpMyAdmin-5.1.1-all-languages.tar.gz
tar zxf phpMyAdmin-5.1.1-all-languages.tar.gz
rm -r phpMyAdmin-5.1.1-all-languages/setup/
if [ -d "phpMyAdmin-5.1.1-all-languages/test/" ]; then
rm -r phpMyAdmin-5.1.1-all-languages/test/
fi
blowfish_secret=`pwgen 32 -1`
echo '<?php' > phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "declare(strict_types=1);" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['blowfish_secret'] = '$blowfish_secret';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$i = 0;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$i++;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['auth_type'] = 'cookie';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['hide_db'] = 'information_schema|performance_schema|mysql|wsrep|vmail';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['host'] = '127.0.0.1';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['compress'] = false;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['AllowNoPassword'] = false;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['UploadDir'] = '';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['SaveDir'] = '';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['TempDir'] = '/tmp';" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
echo "\$cfg['PmaNoRelation_DisableWarning'] = true;" >> phpMyAdmin-5.1.0-all-languages/config.inc.php
mv phpMyAdmin-5.1.0-all-languages /srv/www/html/phpMyAdmin
echo '<?php' > phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "declare(strict_types=1);" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['blowfish_secret'] = '$blowfish_secret';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$i = 0;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$i++;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['auth_type'] = 'cookie';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['hide_db'] = 'information_schema|performance_schema|mysql|wsrep|vmail';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['host'] = '127.0.0.1';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['compress'] = false;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['Servers'][\$i]['AllowNoPassword'] = false;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['UploadDir'] = '';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['SaveDir'] = '';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['TempDir'] = '/tmp';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
echo "\$cfg['PmaNoRelation_DisableWarning'] = true;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php
mv phpMyAdmin-5.1.1-all-languages /srv/www/html/phpMyAdmin
find /srv/www/html/phpMyAdmin -type d -exec chmod 755 {} +
find /srv/www/html/phpMyAdmin -type f -exec chmod 644 {} +
chown -R vhost:vhost /srv/www/html/phpMyAdmin