mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
21 lines
No EOL
631 B
Bash
21 lines
No EOL
631 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 &
|
|
|
|
while true; do
|
|
sleep 1
|
|
done |