Vorgestern habe ich ein phpmyadmin installiert - ich hätte damit warten sollen:
Nur falls Bedarf besteht... mir gingen die Updates auf den Sack und ich habs mittels Cronjob und Script automatisiert.
Code
- #! /bin/bash
- # Path to phpMyAdmin without / at the end
- PMA_PATH='/var/www/html'
- WEB_VERSION=$(curl https://www.phpmyadmin.net/home_page/version.txt 2>/dev/null | head -n1)
- LOCAL_VERSION=$(awk '/^Version.*$/ {print $2}' ${PMA_PATH}/README)
- if [[ $WEB_VERSION != $LOCAL_VERSION ]]
- then
- wget -qO /tmp/pma_latest.tar.gz https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz
- if [[ $? == 0 ]]
- then
- cd /tmp
- tar xf /tmp/pma_latest.tar.gz
- cp -a phpMyAdmin-${WEB_VERSION}-all-languages/* ${PMA_PATH}
- rm -rf pma_latest.tar.gz phpMyAdmin-${WEB_VERSION}-all-languages
- chown -R www-data:www-data ${PMA_PATH}
- fi
- fi