更新 'kongkong_update.sh'

This commit is contained in:
toby 2023-03-28 22:11:05 +08:00
parent 3e9d490ac9
commit d9427edfb8
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
pushd /tmp pushd /tmp
curl -o kongkong_init.py https://git.tobyliu.com/toby/common-tools/raw/branch/main/kongkong_init.py curl -o kongkong_init.py https://git.tobyliu.com/toby/common-tools/raw/branch/main/kongkong_init.py
remoteid=`cat /usr/local/bin/frpc.ini | grep "meta_id =" | cut -d " " -f 3` remoteid=`cat /usr/local/etc/frpc.ini | grep "meta_id =" | cut -d " " -f 3`
python3 kongkong_init.py "$remoteid" python3 kongkong_init.py "$remoteid"
sudo cp frpc.ini /usr/local/bin sudo cp frpc.ini /usr/local/etc
if command -v yum &> /dev/null if command -v yum &> /dev/null
then then