chiark / gitweb /
Allow updating foo when foo and foo.conf both exist
authorPaul Wise <pabs@debian.org>
Sun, 31 May 2015 06:34:33 +0000 (14:34 +0800)
committerPaul Wise <pabs@debian.org>
Sun, 31 May 2015 06:34:33 +0000 (14:34 +0800)
apache2-vhost-update

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