X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=apache2-vhost-update;fp=apache2-vhost-update;h=cf5b1dbcb0992995b1817d24a94cb0786fce23e0;hb=8638348a3e4797018c6ac97afdd001765f10e496;hp=de224ea3f5cc72d7f9e97298eddf4d1cbe28a21e;hpb=484c8edcfd16de0e3059ea4f1f1b934714a33f2d;p=dsa-metapackages.git diff --git a/apache2-vhost-update b/apache2-vhost-update index de224ea..cf5b1db 100755 --- a/apache2-vhost-update +++ b/apache2-vhost-update @@ -91,6 +91,10 @@ if echo "$site" | grep /; then exit 1 fi +if [ -f "$STAGINGDIR/$site.conf" ] ; then + site="$site.conf" +fi + if ! [ -f "$STAGINGDIR/$site" ]; then echo "$STAGINGDIR/$site does not exist or is not a file" >&2 exit 1