提交 b78069b4 authored 作者: yoyoyo's avatar yoyoyo

1

上级 8550b1e9
......@@ -401,7 +401,7 @@ select_operation() {
echo_content "yellow" "请选择要执行的操作:"
PS3="请输入操作对应的数字:"
select operation in "更新项目" "启动/重启【项目】" "启动/重启【mysql】" "卸载" "退出"; do
select operation in "更新项目" "启动/重启【项目】" "启动/重启【mysql】" "重置容器" "卸载" "退出"; do
case $REPLY in
1)
echo_content "green" "你选择了操作: 更新项目"
......@@ -421,11 +421,22 @@ select_operation() {
break
;;
4)
echo_content "green" "你选择了操作: 重置容器"
echo_content "green" "是否要启动/重启 项目?(y/n):"
read -r restart
if [ "$restart" = "y" ]; then
docker rm -f $(docker ps -aq)
echo_content "green" "容器全部删除成功 请重启服务"
start_project
fi
exit
;;
5)
echo_content "green" "你选择了操作: 卸载"
uninstall_project
exit
;;
5)
;;
6)
echo_content "green" "你选择了操作: 退出"
exit
;;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论