adchpp-docker/root/etc/service/adchpp/run

20 lines
454 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
if [[ ! -d /config/certs ]]; then
mkdir -p /config/certs
cd /config/certs
bash /usr/local/src/adchpp/linux/generate_certs.sh
fi
cd /config
exec /usr/local/bin/adchppd -c /config