@@ -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
The note is not visible to the blocked user.