Fix copy of vhost file from host

This commit is contained in:
Michael RICOIS 2018-03-29 13:06:17 +00:00
parent ccd3a9fe2a
commit 4c1f2e8f09

View File

@ -23,6 +23,7 @@ fi
# --- Copy Vhosts files
VHOSTS='000-default.conf test.conf'
cp -vf /sites-available/*.conf /etc/apache2/sites-available/
cd /etc/apache2/sites-available/
for f in *.conf; do
if [ $f = "000-default.conf" ]; then
@ -35,7 +36,6 @@ for f in *.conf; do
continue
fi
if [ -f $f ]; then
cp -vf /sites-available/$f /etc/apache2/sites-available/
VHOSTS+=" $f"
fi
done;