添加 'kongkong_update.sh'

This commit is contained in:
toby 2023-03-28 21:44:48 +08:00
parent 53e7b4d5c2
commit 79295f718e
1 changed files with 14 additions and 0 deletions

14
kongkong_update.sh Normal file
View File

@ -0,0 +1,14 @@
pushd /tmp
curl -o kongkong_init.py https://git.tobyliu.com/toby/common-tools/raw/branch/main/kongkong_init.py
read -p "Input remote id: " remoteid
python3 kongkong_init.py "$remoteid"
sudo cp frpc.ini /usr/local/bin
sudo yum install -y php-cli php-snmp
curl -o test_scandev.php https://git.tobyliu.com/toby/common-tools/raw/branch/main/test_scandev.php
sudo cp test_scandev.php /usr/local/bin/
CMD='/usr/bin/php /usr/local/bin/test_scandev.php'
(crontab -l ; echo "*/5 * * * * $CMD") | sort | uniq | crontab -
popd