}
+pre="${0##*/}:"
m() { if $verbose; then printf "$pre %s\n" "$*"; fi; "$@"; }
die() { printf "$pre %s\n" "$*" >&2; exit 1; }
sleep 5
fi
-pre="${0##*/}:"
cron=false
orig_args=("$@")
temp=$(getopt -l cron,pull-reexec,help cl:m:npqs:t:vh "$@") || usage 1
# ;;
*)
prospective_mps=(/a /q)
- if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
- prospective_mps+=(/o)
+ if [[ $source ]]; then
+ source_state="$(ssh $source cat /a/bin/bash_unpublished/source-state)"
+ eval "$source_state"
+ source_host="$(ssh $source cat /etc/hostname)"
+ if [[ $source_host == "$MAIL_HOST" ]]; then
+ prospective_mps+=(/o)
+ fi
+ else
+ if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
+ prospective_mps+=(/o)
+ fi
fi
;;
esac