From 1bbf7027d35dab8b45c33d1f367d093fbd4ac9c0 Mon Sep 17 00:00:00 2001 From: shenmo Date: Fri, 14 Apr 2023 07:51:44 +0000 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=9B=B4=E4=BC=98=E9=9B=85=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E5=90=8C=E6=AD=A5source?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenmo --- tool/aptss | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tool/aptss b/tool/aptss index 2854dba..21a6ae5 100755 --- a/tool/aptss +++ b/tool/aptss @@ -28,19 +28,10 @@ echo "${TRANSHELL_CONTENT_RUNNING_IN_NOT_ROOT_USER}" else -if is_empty_dir /etc/apt/sources.list.d/ ;then -echo "${TRANSHELL_CONTENT_INFO_SOURCES_LIST_D_IS_EMPTY}" -else + ln -sf /etc/apt/sources.list.d/* /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d ###让这里和系统同步,先链接,然后清除无效链接 -for a in `find /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d -type l` - do - stat -L $a >/dev/null 2>/dev/null - if [ $? -gt 0 ];then - rm $a - fi - done -fi +find /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d -xtype l -delete fi