aboutsummaryrefslogtreecommitdiff
path: root/databases/cassandra/pkg-deinstall
blob: 403e74b34da8377916e37ee249ea135abeb0eb0e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
#
# Removes unchanged configuration files
#
if [ "$2" = "DEINSTALL" ]; then
   if [ ! -d $PKG_PREFIX/share/cassandra/conf ]; then exit 1; fi
   cd $PKG_PREFIX/share/cassandra/conf
   for cfgfile in cassandra.yaml log4j-server.properties access.properties \
		log4j-tools.properties passwd.properties \
		cassandra-topology.properties; do 
       if cmp -s $cfgfile.sample $cfgfile; then
          rm $cfgfile
       fi
   done
fi