projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
simplify
[mirror/dsa-puppet.git]
/
modules
/
roles
/
templates
/
static-mirroring
/
static-update-component.erb
diff --git
a/modules/roles/templates/static-mirroring/static-update-component.erb
b/modules/roles/templates/static-mirroring/static-update-component.erb
index
4ef82e5
..
d00d749
100755
(executable)
--- a/
modules/roles/templates/static-mirroring/static-update-component.erb
+++ b/
modules/roles/templates/static-mirroring/static-update-component.erb
@@
-42,9
+42,7
@@
if [ -z "$srchost" ] || [ -z "$srcdir" ]; then
exit 1
fi
-if [ "$srchost" = "`hostname -f`" ]; then
- src="$srcdir"
-else
+if ! [ "$srchost" = "`hostname -f`" ]; then
echo >&2 "Component $component is sourced from $srchost, not this host."
exit 1
fi