提交 f1f1762a 编写于 作者: 搞机玩家's avatar 搞机玩家

Update install.sh

上级 3838c1b4
......@@ -16,6 +16,7 @@ password=${password:-123456}
# 添加默认配置到config.yaml
if [[ ! -e $CONFIG_FILE ]]; then
echo 配置文件${CONFIG_FILE}不存在,正在创建...
mkdir -p "$(dirname "$CONFIG_FILE")"
touch $CONFIG_FILE
fi
......@@ -34,7 +35,7 @@ curl -fOL https://x.haod.me/https://github.com/coder/code-server/releases/downlo
dpkg -i code-server_${VERSION}_amd64.deb
apt update
apt install -y screen
screen -dmS code code-server
screen -dmS code /usr/bin/code-server --config $CONFIG_FILE ~
echo "等待5s..."
sleep 5
screen -ls
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册