forked from Lainports/freebsd-ports
- JNA support - JVM forced to be openjdk6 - smart shutdown - jamm memory agemt turned on - path is hardcoded into repaircluster script for easier running from cron - rc.conf cassandra_vmargs can now override autogenerated JVM args - in previous versions cassandra_vmargs were not used PR: ports/162413 Submitted by: Radim Kolar <hsn_AT_sendmail.cz> Approved by: maintainer (via ports/162372) Feature safe: yes
15 lines
463 B
Bash
15 lines
463 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 log4j-tools.properties \
|
|
cassandra-topology.properties; do
|
|
if [ ! -f $cfgfile ]; then
|
|
cp -p $cfgfile.sample $cfgfile
|
|
fi
|
|
done
|
|
fi
|