comparison debian/update-dccmaps @ 2:f6716cb00029

Replace buggy stuff in deb dir, never make phone calls while working
author Peter Gervai <grin@grin.hu>
date Tue, 10 Mar 2009 14:29:12 +0100
parents
children
comparison
equal deleted inserted replaced
1:9b8d79ac0dc3 2:f6716cb00029
1 #!/bin/sh
2 #
3 # (c) 2004 by Martin Zobel-Helas
4 # this piece of code is published under the
5 # GNU General Public License
6
7
8 set -e
9 echo -n "Updating DCC map"
10 if [ -e /etc/dcc/map.txt ]; then
11 if [ -e /var/lib/dcc/map ]; then
12 rm -f /var/lib/dcc/map
13 /usr/bin/cdcc -qh /var/lib/dcc 'new map; load -; info' < /etc/dcc/map.txt > /dev/null
14 chown dcc:dcc /var/lib/dcc/map
15 chmod 0600 /var/lib/dcc/map
16 else
17 /usr/bin/cdcc -qh /var/lib/dcc 'new map; load -; info' < /etc/dcc/map.txt > /dev/null
18 chown dcc:dcc /var/lib/dcc/map
19 chmod 0600 /var/lib/dcc/map
20 fi
21 fi
22 echo "."