opnsense-ports/databases/cassandra2/pkg-install
Franco Fichtner a737ce6b05 */*: sync previously available, but unused ports
Taken from: FreeBSD
2015-04-22 06:45:04 +02:00

15 lines
472 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 commitlog_archiving.properties \
cassandra-topology.properties cassandra-rackdc.properties; do
if [ ! -f $cfgfile ]; then
cp -p $cfgfile.sample $cfgfile
fi
done
fi