feat: suitable for xxl-job < 2.2.0 #151

This commit is contained in:
ReaJason
2026-08-03 23:54:06 +08:00
parent 556c9d63ff
commit 29c19a318f
19 changed files with 544 additions and 38 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
set -e
wait-for-it -t 0 db:3306
if [[ $(mysql -hdb -uroot -proot -e "SHOW DATABASES LIKE 'xxl_job';") == "" ]]; then
mysql -hdb -uroot -proot < /usr/src/tables_xxl_job.sql
fi
exec "$@"