From 34506f37b1b15b44f9438e032539a9eeb3984971 Mon Sep 17 00:00:00 2001 From: EthanZhu Date: Mon, 24 Jun 2024 12:55:23 +0800 Subject: [PATCH] Update install.sh --- ubuntu-debian/install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ubuntu-debian/install.sh b/ubuntu-debian/install.sh index 6c21919..e58f239 100644 --- a/ubuntu-debian/install.sh +++ b/ubuntu-debian/install.sh @@ -17,11 +17,9 @@ password=${password:-123456} if [[ ! -e $CONFIG_FILE ]]; then echo 配置文件${CONFIG_FILE}不存在,正在创建... mkdir -p "$(dirname "$CONFIG_FILE")" - touch $CONFIG_FILE fi -# 清空文件 -> $CONFIG_FILE +rm -rf $CONFIG_FILE # 追加默认配置 echo bind-addr: 0.0.0.0:${port} >> $CONFIG_FILE echo 'auth: password' >> $CONFIG_FILE -- GitLab