X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fstatic-update-component.erb;h=d00d7494aede072f9bf51b84c600736167320437;hb=529f0bbc5cfbcec2e92688331f3cb6b487bb8fab;hp=4ef82e5d5a580a03745cd2df0f9853c2811eced8;hpb=3a2559e16e0f400b881c22416bf2fbc382c96d14;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/static-mirroring/static-update-component.erb b/modules/roles/templates/static-mirroring/static-update-component.erb index 4ef82e5d5..d00d7494a 100755 --- 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