#!/bin/bash

sharedconf="/usr/share/logstash/sharedconf"

if [ -d "$sharedconf" ]; then
	chmod 665 $sharedconf/*
	cp $sharedconf/* /usr/share/logstash/config
fi

/usr/local/bin/docker-entrypoint "$@"