d2ray/opt/init.sh

14 lines
278 B
Bash
Raw Normal View History

2022-12-02 12:52:11 +00:00
#!/bin/sh
2023-08-21 13:05:44 +00:00
# create directories
2022-12-02 12:52:11 +00:00
mkdir -p /etc/d2ray/logs/xray
2023-08-21 13:05:44 +00:00
mkdir -p /etc/d2ray/logs/supervisord
mkdir -p /etc/d2ray/certs
2023-08-24 12:50:22 +00:00
rm -rf /etc/d2ray/users
2022-12-02 12:52:11 +00:00
2023-08-21 13:05:44 +00:00
python3 /opt/init.py
2022-12-02 12:52:11 +00:00
retval=$?
if [ $retval -ne 0 ]; then
exit $retval
fi
2023-08-21 13:05:44 +00:00
2022-12-02 12:52:11 +00:00
exec /usr/bin/supervisord -c /opt/supervisord.conf