chiark / gitweb /
Allow vhost site names without .conf at the end
authorPaul Wise <pabs@debian.org>
Sun, 31 May 2015 01:47:09 +0000 (09:47 +0800)
committerPaul Wise <pabs@debian.org>
Sun, 31 May 2015 01:47:09 +0000 (09:47 +0800)
apache2-vhost-update

index de224ea..cf5b1db 100755 (executable)
@@ -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