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
|
2011-11-14 03:17:47 +01:00
|
|
|
for cfgfile in cassandra.yaml log4j-server.properties \
|
2012-01-09 08:02:24 +01:00
|
|
|
log4j-tools.properties cassandra-topology.properties; do
|
2011-09-03 07:19:20 +02:00
|
|
|
if cmp -s $cfgfile.sample $cfgfile; then
|
|
|
|
rm $cfgfile
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|