feat: bootstrap zapret2 autotune

Co-authored-by: GPT-6 <gpt-6@openai.com>
This commit is contained in:
ZeusinaandGPT-6 Bot committed 2026-10-09 20:59:51 +03:00
commit 043df9ff77
17 files changed
+1635

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
# Never invoke the service entrypoint or overwrite a mounted custom runtime.
if [ ! -e /opt/zapret2/lua ] && [ ! -L /opt/zapret2/lua ]; then
cp -a /opt/zapret2/lua.dist /opt/zapret2/lua
fi
if [ ! -d /opt/zapret2/lua ]; then
echo 'error: /opt/zapret2/lua must be a Lua runtime directory' >&2
exit 1
fi
exec /usr/local/bin/zapret-autotune "$@"