#!/bin/zsh if [ $# -ne 3 ]; then echo "Interner Fehler: Ungültige Anzahl Parameter" echo "internal error: invalid number of parameters" fi LOCKFILE=/tmp/newlist lockfile-create --retry 1 $LOCKFILE >/dev/null 2>&1 if [[ "$?" != "0" ]] then echo "Konnte die Mailingliste nicht erstellen. Bitte versuchen Sie es noch einmal. (Diese Seite neu zu laden sollte ausreichen.)" echo "Could not create your mailinglist. Please retry creation. (Reloading this page should be sufficient.)" exit 1 fi TMPFILE=/tmp/newlistoutput$(date -Is) if echo | ~mailman/bin/newlist -- "$1" "$2" "$3" > $TMPFILE 2>&1 then echo "Erstellung erfolgreich -- creation completed" rm -f $TMPFILE lockfile-remove $LOCKFILE else echo "