1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/databases/cassandra/pkg-install
Ruslan Makhmatkhanov c5b06623f8 - update to 1.0.6
- stop using kill-9
- support for cqlsh

While i'm here, fix plist and some whitespace issues.

PR:		163295
Submitted by:	Radim Kolar <hsn at sendmail dot cz>
Approved by:	maintainer (timeout, 3 weeks+)
2012-01-09 07:02:24 +00:00

16 lines
476 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