2012-01-09 08:02:24 +01:00
|
|
|
#!/bin/sh
|
2011-09-03 07:19:20 +02:00
|
|
|
#
|
|
|
|
# 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
|
2013-05-31 03:32:45 +02:00
|
|
|
for cfgfile in cassandra.yaml commitlog_archiving.properties \
|
|
|
|
log4j-server.properties log4j-tools.properties \
|
|
|
|
cassandra-topology.properties cassandra-rackdc.properties;do
|
2011-09-03 07:19:20 +02:00
|
|
|
if cmp -s $cfgfile.sample $cfgfile; then
|
|
|
|
rm $cfgfile
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|