增加了卷映射

This commit is contained in:
2026-07-16 15:34:23 +08:00
parent 409fcaceef
commit f440f12049
4 changed files with 24 additions and 15 deletions
+8
View File
@@ -1,4 +1,12 @@
#!/bin/sh
# 如果映射目录里没有初始化标记文件,说明是初次启动
if [ ! -f "/yuzhen_iot/.initialized" ]; then
echo "检测到初次启动,正在释放默认文件..."
cp -r /yuzhen_iot_default/. /yuzhen_iot/
touch /yuzhen_iot/.initialized
fi
echo "start ssh"
service ssh start