summaryrefslogtreecommitdiff
path: root/databases/cassandra/pkg-install
blob: a8d91f1c0ffc79eeb87cef0322854b4e9f685471 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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