freebsd-ports/databases/cassandra/pkg-install
Sunpoet Po-Chuan Hsieh eb7ecac7e4 - Update to 0.8.4
- Add LICENSE
- Add rc.d script
- Do not remove configuration files during deinstallation

Changes:	https://svn.apache.org/repos/asf/cassandra/tags/cassandra-0.8.4/CHANGES.txt
PR:		ports/160231
Submitted by:	Radim Kolar <hsn@sendmail.cz>
Approved by:	Gea-Suan Lin <gslin@gslin.org> (maintainer)
2011-09-03 05:19:20 +00:00

16 lines
502 B
Bash

#! /bin/sh
#
# Copy sample cassandra config files to real ones if real ones does not exists
#
if [ "$2" = "POST-INSTALL" ]; then
if [ ! -d $PKG_PREFIX/share/cassandra/conf ]; then exit 1; fi
umask 027
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 [ ! -f $cfgfile ]; then
cp -p $cfgfile.sample $cfgfile
fi
done
fi