adchpp-docker/root/etc/service/adchpp/run
2020-03-22 03:26:16 -07:00

14 lines
310 B
Bash

#!/bin/bash
if [[ ! -e /config/adchpp.xml ]]; then
cp /usr/local/src/adchpp/etc/adchpp.xml /config/adchpp.xml
fi
if [[ ! -d /config/scripts ]]; then
mkdir -p /config/scripts
cp /usr/local/src/adchpp/plugins/Script/examples/*.lua /config/scripts
fi
cd /tmp
exec /usr/local/bin/adchppd -c /config