aboutsummaryrefslogblamecommitdiff
path: root/databases/cassandra2/pkg-deinstall
blob: c409b768da6047c4d7c5bbd43d2263add0086c5d (plain) (tree)
1
2
3
4
5
6
7
8







                                                                 





                                                                            
#!/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 commitlog_archiving.properties \
		cassandra-topology.properties cassandra-rackdc.properties;do
       if cmp -s $cfgfile.sample $cfgfile; then
          rm $cfgfile
       fi
   done
fi