diff --git a/mm2sympa.sh b/mm2sympa.sh index 4acf638cc785b2540f6e0fb7db3d3a3376d5728b..9e0241afae6a1cad03d7f0ff4ae4cff7e0f352a9 100755 --- a/mm2sympa.sh +++ b/mm2sympa.sh @@ -20,6 +20,11 @@ if [ ! -f "/etc/sympa/$robot/robot.conf" ]; then exit 1 fi +if [ -z "$MMPW" ]; then + echo "Please set MMPW to the listadmin password of $mmdomain!" >&2 + exit 1 +fi + function sshml() { ssh -o ControlPath="~/.ssh/cp-$MPI_ROOT-%C" -o ControlMaster=auto -o ControlPersist=600s $mmdomain -l root "$@" } @@ -33,7 +38,7 @@ tmpdir=$(mktemp -t -d mm2sympa.${mailmanlist/@/AT}.XXXXXXXX) chmod go+rx $tmpdir trap "rm -rf $tmpdir" 0 1 2 5 15 EXIT -set -x +#set -x # create list based on mailman config inputpy=$tmpdir/input.py