From a94535293d889eaddfa5c3e9d18150da88774c5e Mon Sep 17 00:00:00 2001 From: Merith Date: Thu, 5 Jun 2025 06:29:32 +0000 Subject: [PATCH] fix dat entrypoint --- entrypoint.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e8ea64b..42bfd87 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,12 +6,9 @@ while ! ping -c1 1.1.1.1 &>/dev/null; do sleep 5 done -if [ ! -f "/data/winbox64.exe" ]; then +if [ ! -f "/winbox64.exe" ]; then echo "Winbox executable not found in /data. Downloading..." - mkdir -p /data - wget -O /data/winbox64.exe https://download.mikrotik.com/routeros/winbox/3.42/winbox64.exe -else - echo "Winbox executable found in /data." + wget -O /winbox64.exe https://download.mikrotik.com/routeros/winbox/3.42/winbox64.exe fi -wine64 /tmp/winbox64.exe +wine64 /winbox64.exe