mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
调整容器启动命令,支持优雅推出,添加Dockerfile,更新tar包
This commit is contained in:
parent
e9e1f9c638
commit
09d3af63a1
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM alpine
|
||||
RUN apk add curl nftables
|
||||
RUN sh <(curl -kfsSl https://raw.githubusercontent.com/jimorsm/ShellCrash/master/install.sh) -d /app && \
|
||||
crash -l https://your-subscription-address
|
||||
CMD [ "/app/start.sh","start" ]
|
Binary file not shown.
|
@ -1909,7 +1909,7 @@ start)
|
|||
if [ "$firewall_area" = "5" ]; then #主旁转发
|
||||
[ -z $container_mode ] && stop_firewall || start_firewall skip_nameserver
|
||||
elif [ -n $container_mode ]; then #容器内直接前台启动
|
||||
bfstart && $COMMAND
|
||||
bfstart && exec $COMMAND
|
||||
elif [ "$start_old" = "已开启" ]; then
|
||||
bfstart && start_old
|
||||
elif [ -f /etc/rc.common -a "$(cat /proc/1/comm)" = "procd" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user