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