From 485c21ad5a9a5d8b83852b0412d4412786a50d6d Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Thu, 25 Feb 2021 12:29:06 +0100 Subject: [PATCH] Add 'Update-PhpMyAdmin.sh' --- Update-PhpMyAdmin.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Update-PhpMyAdmin.sh diff --git a/Update-PhpMyAdmin.sh b/Update-PhpMyAdmin.sh new file mode 100644 index 0000000..eddc66f --- /dev/null +++ b/Update-PhpMyAdmin.sh @@ -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 \ No newline at end of file