mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 16:21:11 +08:00
18 lines
543 B
Bash
18 lines
543 B
Bash
#!/bin/bash
|
|
|
|
APPLICATON=ghproxy
|
|
|
|
if [ ! -f /data/${APPLICATON}/config/blacklist.json ]; then
|
|
cp /data/${APPLICATON}/blacklist.json /data/${APPLICATON}/config/blacklist.json
|
|
fi
|
|
|
|
if [ ! -f /data/${APPLICATON}/config/whitelist.json ]; then
|
|
cp /data/${APPLICATON}/whitelist.json /data/${APPLICATON}/config/whitelist.json
|
|
fi
|
|
|
|
if [ ! -f /data/${APPLICATON}/config/config.yaml ]; then
|
|
cp /data/${APPLICATON}/config.yaml /data/${APPLICATON}/config/config.yaml
|
|
fi
|
|
|
|
/data/${APPLICATON}/${APPLICATON} > /data/${APPLICATON}/log/run.log 2>&1
|
|
|