mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-07 11:52:20 +08:00
用更优雅的方式同步source
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
parent
90ec030f8b
commit
1bbf7027d3
13
tool/aptss
13
tool/aptss
@ -28,19 +28,10 @@ echo "${TRANSHELL_CONTENT_RUNNING_IN_NOT_ROOT_USER}"
|
|||||||
|
|
||||||
else
|
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
|
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`
|
find /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d -xtype l -delete
|
||||||
do
|
|
||||||
stat -L $a >/dev/null 2>/dev/null
|
|
||||||
if [ $? -gt 0 ];then
|
|
||||||
rm $a
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user