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
(from parent 1:
b6da333
)
Allow updating foo when foo and foo.conf both exist
author
Paul Wise
<pabs@debian.org>
Sun, 31 May 2015 06:34:33 +0000
(14:34 +0800)
committer
Paul Wise
<pabs@debian.org>
Sun, 31 May 2015 06:34:33 +0000
(14:34 +0800)
apache2-vhost-update
patch
|
blob
|
history
diff --git
a/apache2-vhost-update
b/apache2-vhost-update
index cf5b1dbcb0992995b1817d24a94cb0786fce23e0..2c283a39f7ae7c021c27c62ee7369a9dd45fe88b 100755
(executable)
--- 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