mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-09-07 02:24:44 +00:00
Compare commits
2 Commits
7.23rc4
...
7.23-arm64
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba0ffe3cd7 | ||
|
|
7cf469dc0c |
14
.github/workflows/mikrotik_patch_7.yml
vendored
14
.github/workflows/mikrotik_patch_7.yml
vendored
@@ -711,6 +711,20 @@ jobs:
|
|||||||
- name: Upload Files
|
- name: Upload Files
|
||||||
if: steps.get_latest.outputs.has_new_version == 'true' && env.RELEASE == 'true'
|
if: steps.get_latest.outputs.has_new_version == 'true' && env.RELEASE == 'true'
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt-get install -y knockd lftp > /dev/null
|
||||||
|
knock -4 ${{ secrets.SSH_SERVER }} ${{ secrets.SSH_KNOCK_PORT }}
|
||||||
|
echo "Knocking on server..."
|
||||||
|
for i in 1 2 3; do
|
||||||
|
if knock -4 ${{ secrets.SSH_SERVER }} ${{ secrets.SSH_KNOCK_PORT }} ; then
|
||||||
|
echo "Knock successful"
|
||||||
|
break
|
||||||
|
else
|
||||||
|
echo "Knock attempt $i failed, retrying..."
|
||||||
|
sleep 2
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo "Waiting for firewall to open SSH port..."
|
||||||
|
sleep 3
|
||||||
sudo chown -R root:root ./publish/
|
sudo chown -R root:root ./publish/
|
||||||
LOCAL_PATH=./publish/$LATEST_VERSION
|
LOCAL_PATH=./publish/$LATEST_VERSION
|
||||||
REMOTE_PATH=${{ secrets.SSH_DIRECTORY }}
|
REMOTE_PATH=${{ secrets.SSH_DIRECTORY }}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
### 感谢赞助
|
### 感谢赞助
|
||||||
[](https://www.digitalocean.com/?refcode=dbf6ed365068&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge)
|
[](https://www.digitalocean.com/?refcode=dbf6ed365068&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge)
|
||||||
|
|
||||||
[DartNode(aff)](https://dartnode.com?aff=SnazzyLobster067) | [ZMTO(aff)](https://console.zmto.com/?affid=1588) | [Vultr(aff)](https://www.vultr.com/?ref=9807160-9J)
|
[DartNode(aff)](https://dartnode.com?aff=SnazzyLobster067) | [ZMTO(aff)](https://console.zmto.com/?affid=1588) | [Vultr(aff)](https://www.vultr.com/?ref=9807160-9J)
|
||||||
|
|
||||||
# MikroTik RouterOS Patch [[English](README_EN.md)]
|
# MikroTik RouterOS Patch [[English](README_EN.md)]
|
||||||
@@ -63,7 +62,7 @@ graph TD
|
|||||||
### patch.py
|
### patch.py
|
||||||
替换公钥并签名
|
替换公钥并签名
|
||||||
|
|
||||||
## 所有的修补操作都自动运行在[Github Action](https://github.com/elseif/MikroTikPatch/blob/main/.github/workflows/)。
|
[](https://dartnode.com "Powered by DartNode - Free VPS for Open Source")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user