14 lines
392 B
Bash
Executable File
14 lines
392 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "$(dirname "$(readlink -f "$0")")"
|
|
|
|
# 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
|
|
|
|
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
|