chiark / gitweb /
dgit now uses just curl, not wget
[dsa-metapackages.git] / apache2-vhost-update
index de224ea3f5cc72d7f9e97298eddf4d1cbe28a21e..2c283a39f7ae7c021c27c62ee7369a9dd45fe88b 100755 (executable)
@@ -91,6 +91,10 @@ if echo "$site" | grep /; then
        exit 1
 fi
 
+if [ -f "$STAGINGDIR/$site.conf" -a ! -f "$STAGINGDIR/$site" ] ; then
+       site="$site.conf"
+fi
+
 if ! [ -f "$STAGINGDIR/$site" ]; then
        echo "$STAGINGDIR/$site does not exist or is not a file" >&2
        exit 1