d2ray/opt/init.sh
quackerd 206a920bf8
All checks were successful
continuous-integration/drone/push Build is passing
clean new images
2022-12-02 13:52:11 +01:00

13 lines
319 B
Bash

#!/bin/sh
# create log directories
mkdir -p /etc/d2ray/logs/cron
mkdir -p /etc/d2ray/logs/xray
mkdir -p /etc/d2ray/logs/nginx
mkdir -p /etc/d2ray/logs/supervisor
python3 /opt/init.py -p $PORT -u $USERS -f $FQDN
retval=$?
if [ $retval -ne 0 ]; then
exit $retval
fi
exec /usr/bin/supervisord -c /opt/supervisord.conf