aboutsummaryrefslogtreecommitdiffstats
path: root/net/hornetq/pkg-install
blob: efe43b7d60f43d7a0f3192c329c1eed86f2dc0b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#
# Copy sample hornetq config files to real ones if real ones does not exists
#
if [ "$2" = "POST-INSTALL" ]; then
   if [ ! -d $PKG_PREFIX/share/hornetq/config/stand-alone ]; then exit 1; fi
   umask 027
   cd $PKG_PREFIX/share/hornetq/config/stand-alone
   for cfgdir  in clustered non-clustered; do
      for cfgfile in hornetq-beans.xml hornetq-users.xml \
                 hornetq-configuration.xml jndi.properties \
             hornetq-jms.xml logging.properties; do
         if [ ! -f $cfgdir/$cfgfile ]; then
            cp -p $cfgdir/$cfgfile.sample $cfgdir/$cfgfile
         fi
      done
   done
fi