update phpMyAdmin
This commit is contained in:
parent
28a3494786
commit
284992565d
@ -5,7 +5,7 @@ DIR=/vagrant
|
||||
DIRDATA=$DIR/data
|
||||
MYSQL_PASS=scores
|
||||
MARIADB_VERSION="10.0"
|
||||
PHPMYADMIN_VERSION="4.4.7"
|
||||
PHPMYADMIN_VERSION="4.4.14"
|
||||
|
||||
if [ -f $DIR/action.upgrade ]
|
||||
then
|
||||
|
@ -2,8 +2,8 @@
|
||||
ServerName phpmyadmin.sd.dev
|
||||
UseCanonicalName On
|
||||
UseCanonicalPhysicalPort On
|
||||
DocumentRoot /home/vhosts/phpMyAdmin-4.3.7-all-languages
|
||||
<Directory /home/vhosts/phpMyAdmin-4.3.7-all-languages/>
|
||||
DocumentRoot /home/vhosts/phpMyAdmin-4.4.10-all-languages
|
||||
<Directory /home/vhosts/phpMyAdmin-4.4.10-all-languages/>
|
||||
EnableSendfile Off
|
||||
AllowOverride all
|
||||
Order allow,deny
|
||||
|
Binary file not shown.
@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VAGRANTDEV=1
|
||||
VARGANTDEV=1
|
||||
DIR=/vagrant
|
||||
DIRDATA=$DIR/data
|
||||
MYSQL_PASS=scores
|
||||
MARIADB_VERSION="10.0"
|
||||
PHPMYADMIN_VERSION="4.4.10"
|
||||
PHPMYADMIN_VERSION="4.5.1"
|
||||
|
||||
# --- Add a file action.upgrade to perfom a system upgrade
|
||||
if [ -f $DIR/action.upgrade ]
|
||||
@ -128,9 +128,24 @@ fi
|
||||
|
||||
# --- Disable all website
|
||||
cd /etc/apache2/sites-available/
|
||||
DVHOSTS=''
|
||||
for f in *.conf; do DVHOSTS+=" $f"; done;
|
||||
sudo a2dissite $DVHOSTS
|
||||
for f in *.conf; do
|
||||
if [ $f = "000-default.conf" ]; then
|
||||
continue
|
||||
fi
|
||||
if [ $f = "default-ssl.conf" ]; then
|
||||
continue
|
||||
fi
|
||||
sudo a2dissite $f;
|
||||
sudo rm -vf /etc/apache2/sites-available/$f;
|
||||
done;
|
||||
|
||||
# --- phpmyadmin.sd.dev && test.sd.dev
|
||||
cp -f $DIRDATA/Apache/phpmyadmin.conf $DIR/vhosts/phpmyadmin.conf
|
||||
cp -f $DIRDATA/Apache/test.conf /etc/apache2/sites-available/test.conf
|
||||
if [ ! -d /home/vhosts/test ]
|
||||
then
|
||||
sudo mkdir /home/vhosts/test
|
||||
fi
|
||||
|
||||
# --- Copy Vhosts files
|
||||
VHOSTS='000-default.conf'
|
||||
@ -142,7 +157,6 @@ for f in *.conf; do
|
||||
if [ $f = "default-ssl.conf" ]; then
|
||||
continue
|
||||
fi
|
||||
sudo rm -vf /etc/apache2/sites-available/$f;
|
||||
if [ -f $f ]
|
||||
then
|
||||
sudo cp -vf $f /etc/apache2/sites-available/;
|
||||
@ -150,20 +164,6 @@ for f in *.conf; do
|
||||
fi
|
||||
done;
|
||||
|
||||
# --- PhpMyAdmin / test.sd.lan
|
||||
if [ ! -f $DIR/vhosts/phpmyadmin.conf ]
|
||||
then
|
||||
cp $DIRDATA/Apache/phpmyadmin.conf $DIR/vhosts/phpmyadmin.conf
|
||||
fi
|
||||
if [ ! -f $DIR/vhosts/test.conf ]
|
||||
then
|
||||
cp $DIRDATA/Apache/test.conf /etc/apache2/sites-available/test.conf
|
||||
if [ ! -d /home/vhosts/test ]
|
||||
then
|
||||
sudo mkdir /home/vhosts/test
|
||||
fi
|
||||
fi
|
||||
|
||||
sudo a2ensite $VHOSTS
|
||||
|
||||
# --- Restart apache
|
||||
|
@ -2,8 +2,8 @@
|
||||
ServerName phpmyadmin.sd.dev
|
||||
UseCanonicalName On
|
||||
UseCanonicalPhysicalPort On
|
||||
DocumentRoot /home/vhosts/phpMyAdmin-4.4.10-all-languages
|
||||
<Directory /home/vhosts/phpMyAdmin-4.4.10-all-languages/>
|
||||
DocumentRoot /home/vhosts/phpMyAdmin-4.5.1-all-languages
|
||||
<Directory /home/vhosts/phpMyAdmin-4.5.1-all-languages/>
|
||||
EnableSendfile Off
|
||||
AllowOverride all
|
||||
Require all granted
|
||||
|
Binary file not shown.
BIN
lamp-trusty64/data/Apps/phpMyAdmin-4.5.1-all-languages.tar.xz
Normal file
BIN
lamp-trusty64/data/Apps/phpMyAdmin-4.5.1-all-languages.tar.xz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user