mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
8683cc37e9
PR: ports/178561 Submitted by: Radim Kolar <hsn@sendmail.cz> (maintainer)
17 lines
523 B
Bash
17 lines
523 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 \
|
|
log4j-server.properties log4j-tools.properties \
|
|
cassandra-topology.properties cassandra-rackdc.properties; do
|
|
if [ ! -f $cfgfile ]; then
|
|
cp -p $cfgfile.sample $cfgfile
|
|
fi
|
|
done
|
|
fi
|