Suppression archive phpMyAdmin et téléchargement direct

This commit is contained in:
Michael RICOIS 2015-12-14 11:10:03 +01:00
parent 284992565d
commit ee86341ce5
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@ DIR=/vagrant
DIRDATA=$DIR/data
MYSQL_PASS=scores
MARIADB_VERSION="10.0"
PHPMYADMIN_VERSION="4.5.1"
PHPMYADMIN_VERSION="4.5.2"
# --- Add a file action.upgrade to perfom a system upgrade
if [ -f $DIR/action.upgrade ]
@ -106,8 +106,10 @@ fi
# --- Installation phpMyAdmin
PHPMYADMIN_PATH="phpMyAdmin-$PHPMYADMIN_VERSION-all-languages"
if [ ! -d "/home/vhosts/$PHPMYADMIN_PATH" ]
PHPMYADMIN_URL="https://files.phpmyadmin.net/phpMyAdmin"
if [ ! -d "/home/vhosts/$PHPMYADMIN_VERSION/$PHPMYADMIN_PATH" ]
then
wget "$PHPMYADMIN_URL/$PHPMYADMIN_VERSION/$PHPMYADMIN_PATH.tar.xz" -O "$DIRDATA/Apps/$PHPMYADMIN_PATH.tar.xz"
if [ -f "$DIRDATA/Apps/$PHPMYADMIN_PATH.tar.xz" ]
then
tar xJvf "$DIRDATA/Apps/$PHPMYADMIN_PATH.tar.xz" --directory /home/vhosts/