X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=buildd%2Fcleanup.sh;h=93457ab1c1fef97385819f327f830e80b13eb54a;hp=6c25a681108ba9b02ade1bc41799cae4793c3aa3;hb=d90aede33c817e67e26029cf611b2102780d0529;hpb=b647914fdb0a2c32ef828a5d7d822a26dac6a125 diff --git a/buildd/cleanup.sh b/buildd/cleanup.sh index 6c25a68..93457ab 100755 --- a/buildd/cleanup.sh +++ b/buildd/cleanup.sh @@ -22,12 +22,6 @@ if [ -z "$MIRROR_DIRECTORY" ] ; then exit 1 fi -# mail address where reports should be sent to -if [ -z "$STORAGE_ADMIN" ] ; then - echo "Error: \$STORAGE_ADMIN is not set. Exiting." >&2 - exit 2 -fi - if [ -z "$FLAVOURS" ] ; then echo "Error: \$FLAVOURS is not set. Exiting." >&2 exit 2 @@ -66,7 +60,7 @@ done # inform on successful removal: if [ "$(echo "$REMOVE_ME" | tr -d ' ' )" != "" ] ; then - echo "deleted files $REMOVE_ME" | mail -s "daily-builds cleanup script" "$STORAGE_ADMIN" + echo "Removed previous files $REMOVE_ME" | logger -t grml-buildd fi ## END OF FILE #################################################################