blob: 1e954ce935b1d1ce0ee734065b97d05a3d595a3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
GIT_URL=$1
CACHE_DIR=/var/cache/mailman_templates
if [ ! -d $CACHE_DIR ]; then
git clone $GIT_URL /var/cache/mailman_templates
cd $CACHE_DIR
else
cd $CACHE_DIR
# on EL6, git is not respecting -q, unlike Fedora
git pull --rebase -q >/dev/null
fi
cp -R * /var/lib/mailman/lists/
rm -f /var/lib/mailman/lists/README.md
chown -R apache:mailman /var/lib/mailman/lists/
|