Update bootstrap

This commit is contained in:
Michael RICOIS 2015-08-05 09:34:18 +02:00
parent c662505390
commit a61ad99627

View File

@ -126,7 +126,31 @@ then
sudo a2enconf httpd
fi
# --- Configuration Apache / Vhosts
# --- Disable all website
cd /etc/apache2/sites-available/
DVHOSTS=''
for f in *.conf; do DVHOSTS+=" $f"; done;
sudo a2dissite $DVHOSTS
# --- Copy Vhosts files
VHOSTS='000-default.conf'
cd $DIR/vhosts/
for f in *.conf; do
if [ $f = "000-default.conf" ]; then
continue
fi
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/;
VHOSTS+=" $f"
fi
done;
# --- PhpMyAdmin / test.sd.lan
if [ ! -f $DIR/vhosts/phpmyadmin.conf ]
then
cp $DIRDATA/Apache/phpmyadmin.conf $DIR/vhosts/phpmyadmin.conf
@ -140,22 +164,6 @@ then
fi
fi
# --- Disable all website
cd /etc/apache2/sites-available/
DVHOSTS=''
for f in *.conf; do DVHOSTS+=" $f"; done;
sudo a2dissite $DVHOSTS
# --- Copy Vhosts files
VHOSTS='000-default.conf'
cd $DIR/vhosts/
for f in *.conf; do
if [ -f $f ]
then
sudo cp -f $f /etc/apache2/sites-available/;
VHOSTS+=" $f"
fi
done;
sudo a2ensite $VHOSTS
# --- Restart apache