From 8638348a3e4797018c6ac97afdd001765f10e496 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Sun, 31 May 2015 09:47:09 +0800 Subject: [PATCH] Allow vhost site names without .conf at the end --- apache2-vhost-update | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2