chiark
/
gitweb
/
~ianmdlvl
/
dsa-metapackages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
484c8ed
)
Allow vhost site names without .conf at the end
author
Paul Wise
<pabs@debian.org>
Sun, 31 May 2015 01:47:09 +0000
(09:47 +0800)
committer
Paul Wise
<pabs@debian.org>
Sun, 31 May 2015 01:47:09 +0000
(09:47 +0800)
apache2-vhost-update
patch
|
blob
|
history
diff --git
a/apache2-vhost-update
b/apache2-vhost-update
index de224ea3f5cc72d7f9e97298eddf4d1cbe28a21e..cf5b1dbcb0992995b1817d24a94cb0786fce23e0 100755
(executable)
--- 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