Update bootstrap
This commit is contained in:
parent
c662505390
commit
a61ad99627
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user