Skip to content

Commit 6fad310

Browse files
authored
Update titan_start.sh
1 parent 5f5ffe0 commit 6fad310

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

titan/titan_start.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
storageDir="/root/.titanedge"
3+
storageDir="/home/runner/.titanedge"
44
containerCount="5"
55
identityCode="$1"
66
storageSizeGB="12"
@@ -89,7 +89,7 @@ else
8989

9090
# 创建对应的存储目录
9191
echo "创建存储目录:$storageDir/$folderName"
92-
sudo mkdir -p "$storageDir/$folderName"
92+
mkdir -p "$storageDir/$folderName"
9393

9494
# 拉取最新Docker镜像
9595
echo "正在拉取最新的 Docker 镜像 nezha123/titan-edge..."
@@ -121,6 +121,9 @@ else
121121
echo "重启容器 $containerName..."
122122
docker restart $containerName
123123

124+
sleep 5s
125+
docker exec $containerName titan-edge info
126+
124127
done
125128

126129
echo "所有操作已完成。"

0 commit comments

Comments
 (0)