From f1f1762a571e1eadd6ec87dcf1366c01074148b3 Mon Sep 17 00:00:00 2001 From: EthanZhu Date: Mon, 24 Jun 2024 12:35:40 +0800 Subject: [PATCH] Update install.sh --- ubuntu-debian/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubuntu-debian/install.sh b/ubuntu-debian/install.sh index dee49bf..407cdce 100644 --- a/ubuntu-debian/install.sh +++ b/ubuntu-debian/install.sh @@ -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 -- GitLab