From c36b3eca9a0eab6df074eeaf5c4d5da26cb6166a Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Sun, 31 May 2015 14:34:33 +0800 Subject: [PATCH] Allow updating foo when foo and foo.conf both exist --- apache2-vhost-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache2-vhost-update b/apache2-vhost-update index cf5b1db..2c283a3 100755 --- a/apache2-vhost-update +++ b/apache2-vhost-update @@ -91,7 +91,7 @@ if echo "$site" | grep /; then exit 1 fi -if [ -f "$STAGINGDIR/$site.conf" ] ; then +if [ -f "$STAGINGDIR/$site.conf" -a ! -f "$STAGINGDIR/$site" ] ; then site="$site.conf" fi -- 2.30.2