X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fstatic-update-component.erb;h=2f70cfbb7d7ba917e319b1a9baa7986b1566effd;hb=b3b09b4852bd2f5c87883ae7ec63f4571ec0c928;hp=23fb0d97347ba24c3d0a9f86aa9478b22402246f;hpb=427a4f6d1a5a45ff20d554a70bd834ff28d32d7a;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 23fb0d973..2f70cfbb7 100755 --- a/modules/roles/templates/static-mirroring/static-update-component.erb +++ b/modules/roles/templates/static-mirroring/static-update-component.erb @@ -61,12 +61,12 @@ if [ -z "$srchost" ] || [ -z "$srcdir" ]; then exit 1 fi -if ! [ "$srchost" = "$thisthost" ] && [ -z "$inextralist" ]; then +if ! [ "$srchost" = "$thishost" ] && [ -z "$inextralist" ]; then echo >&2 "Component $component is sourced from $srchost, and this host is neither that nor in the extra allowed list." exit 1 fi -if [ "$srchost" = "$thisthost" ] && ! [ -d "$srcdir" ]; then +if [ "$srchost" = "$thishost" ] && ! [ -d "$srcdir" ]; then echo >&2 "Component source directory $srcdir does not exist or is not a directory, or is not accessible." exit 1 fi