mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2025-07-13 20:22:35 +08:00
.
This commit is contained in:
21
docker/docker-entrypoint.sh
Executable file
21
docker/docker-entrypoint.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
crond
|
||||
|
||||
echo -e "\n======================== 2. 更新源代码 ========================\n"
|
||||
jd update
|
||||
echo
|
||||
|
||||
crontab /root/jd/config/crontab.list
|
||||
|
||||
jd panelon
|
||||
jd panelon
|
||||
|
||||
echo -e "容器启动成功...\n"
|
||||
|
||||
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
|
||||
set -- node "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
Reference in New Issue
Block a user