Add 'Update-PhpMyAdmin.sh'
This commit is contained in:
19
Update-PhpMyAdmin.sh
Normal file
19
Update-PhpMyAdmin.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
#MySQL GIT repo Settings
|
||||
mrepo=https://git.ictmaatwerk.com/VPS-scripts/MySQL
|
||||
mbranch=master
|
||||
|
||||
#Removing old version
|
||||
rm -rf /usr/share/phpmyadmin/*
|
||||
|
||||
#Installing new verion
|
||||
curl --retry 7 --retry-delay 5 -s http://mirror.nxdi.nl/resources/phpmyadmin/phpMyAdmin-latest-english.tar.gz -o /tmp/phpmya.tar.gz
|
||||
tar -C /usr/share/phpmyadmin -xzf /tmp/phpmya.tar.gz --strip 1
|
||||
|
||||
#Installing custom vendor config
|
||||
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/phpmyadmin/vendor_config.php -o /usr/share/phpmyadmin/libraries/vendor_config.php
|
||||
|
||||
#Resetting permissions
|
||||
chown Backend:Backend /usr/share/phpmyadmin -R ##WebV2
|
||||
#chown www-data:www-data /usr/share/phpmyadmin -R #For legacy installs only
|
||||
Reference in New Issue
Block a user