Files
ezmlm-management/ezmlm-export-subscribers.sh

14 lines
371 B
Bash
Raw Normal View History

2014-11-28 15:07:19 +01:00
#!/bin/bash
2014-11-28 14:07:26 +01:00
cd $(dirname $0)
2014-11-28 14:54:34 +01:00
# Test if config.cfg exists and set needed variables
if [ ! -e config.cfg ]; then echo "Missing config.cfg file. Edit and rename config.cfg.sample"; exit 1; fi
source config.cfg
2014-11-28 14:07:26 +01:00
echo "$DESC" > $EXPORT
echo "" >> $EXPORT
/usr/local/bin/ezmlm-list "$DIR" >> $EXPORT
echo "" >> $EXPORT
echo "Stand: $(date +%d.%m.%Y-%H:%M:%S) Uhr" >> $EXPORT