36 lines
1.4 KiB
Bash
Executable File
36 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
########################################################################
|
|
# Copyright (C) 2015 Max Mehl <mail@mehl.mx>
|
|
########################################################################
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
########################################################################
|
|
#
|
|
# Exports current subscribers of a mailing lists in a text file
|
|
#
|
|
########################################################################
|
|
|
|
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
|