mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
8683cc37e9
PR: ports/178561 Submitted by: Radim Kolar <hsn@sendmail.cz> (maintainer)
16 lines
461 B
Bash
16 lines
461 B
Bash
#!/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 \
|
|
log4j-server.properties log4j-tools.properties \
|
|
cassandra-topology.properties cassandra-rackdc.properties;do
|
|
if cmp -s $cfgfile.sample $cfgfile; then
|
|
rm $cfgfile
|
|
fi
|
|
done
|
|
fi
|