mirror of https://github.com/jumpserver/jumpserver
perf: 修复容器重启页面报错
parent
305a1b10ed
commit
1a7fd58abf
|
@ -11,6 +11,9 @@ action="${1-start}"
|
||||||
service="${2-all}"
|
service="${2-all}"
|
||||||
|
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
|
rm -f /opt/jumpserver/tmp/*.pid
|
||||||
|
|
||||||
if [[ "$action" == "bash" || "$action" == "sh" ]];then
|
if [[ "$action" == "bash" || "$action" == "sh" ]];then
|
||||||
bash
|
bash
|
||||||
elif [[ "$action" == "sleep" ]];then
|
elif [[ "$action" == "sleep" ]];then
|
||||||
|
@ -19,4 +22,3 @@ elif [[ "$action" == "sleep" ]];then
|
||||||
else
|
else
|
||||||
python jms "${action}" "${service}"
|
python jms "${action}" "${service}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue