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