From 082eaaf2c875efcbd4a75b9cfd3e72238a6a110a Mon Sep 17 00:00:00 2001 From: Rajesh Acharya Date: Tue, 23 Jul 2024 20:23:43 +0530 Subject: [PATCH] phpmyadmin_version changes --- mysql-20-04/scripts/010-php-my-admin.sh | 4 ++++ mysql-20-04/template.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mysql-20-04/scripts/010-php-my-admin.sh b/mysql-20-04/scripts/010-php-my-admin.sh index a650759..3a50e74 100755 --- a/mysql-20-04/scripts/010-php-my-admin.sh +++ b/mysql-20-04/scripts/010-php-my-admin.sh @@ -6,6 +6,10 @@ chown -R www-data: /etc/apache2 chown -R www-data: /var/www # Manually update phpmyadmin to latest version +if [ -z "${phpmyadmin_version}" ]; then + phpmyadmin_version=$(curl -sSL https://www.phpmyadmin.net/home_page/version.txt | head -1); +fi + wget -O /tmp/phpmyadmin.tar.gz "https://files.phpmyadmin.net/phpMyAdmin/${phpmyadmin_version}/phpMyAdmin-${phpmyadmin_version}-all-languages.tar.gz" mv /usr/share/phpmyadmin /usr/share/phpmyadmin.bak mkdir /usr/share/phpmyadmin diff --git a/mysql-20-04/template.json b/mysql-20-04/template.json index 500ed71..bae355d 100644 --- a/mysql-20-04/template.json +++ b/mysql-20-04/template.json @@ -6,7 +6,7 @@ "apt_packages": "apache2 apache2-utils mysql-server php php-gd php-mysql phpmyadmin python3-certbot-apache libapache2-mod-php lamp-server^ ", "application_name": "MySQL", "application_version": "8.0.21", - "phpmyadmin_version": "5.0.3" + "phpmyadmin_version": "" }, "sensitive-variables": ["do_api_token"], "builders": [