更新 'kongkong_update.sh'
This commit is contained in:
parent
185b040368
commit
3e9d490ac9
|
|
@ -5,7 +5,13 @@ remoteid=`cat /usr/local/bin/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/bin
|
||||||
|
|
||||||
sudo yum install -y php-cli php-snmp
|
if command -v yum &> /dev/null
|
||||||
|
then
|
||||||
|
sudo yum install -y php-cli php-snmp
|
||||||
|
else
|
||||||
|
sudo apt-get install -y php-cli php-snmp
|
||||||
|
fi
|
||||||
|
|
||||||
curl -o test_scandev.php https://git.tobyliu.com/toby/common-tools/raw/branch/main/test_scandev.php
|
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/
|
sudo cp test_scandev.php /usr/local/bin/
|
||||||
CMD='/usr/bin/php /usr/local/bin/test_scandev.php'
|
CMD='/usr/bin/php /usr/local/bin/test_scandev.php'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue