Spotter-VM/activemq/setup.sh

13 lines
253 B
Bash

#!/bin/sh
set -e
SOURCE_DIR=$(realpath $(dirname "${0}"))/activemq/setup
# Create service
cp ${SOURCE_DIR}/etc/init.d/activemq /etc/init.d/activemq
rc-update -u
# Configure ActiveMQ
mkdir -p /srv/activemq/data
chown -R 61616:61616 /srv/activemq/data