mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
安装时删除已有的源
This commit is contained in:
5
debian/spark-store.postinst
vendored
5
debian/spark-store.postinst
vendored
@@ -6,6 +6,11 @@ case "$1" in
|
|||||||
# config for aptss
|
# config for aptss
|
||||||
mkdir -p /etc/aptss/sources.list.d
|
mkdir -p /etc/aptss/sources.list.d
|
||||||
ln -s -f /etc/apt/sources.list /etc/aptss/sources.list
|
ln -s -f /etc/apt/sources.list /etc/aptss/sources.list
|
||||||
|
|
||||||
|
# Remove the sources.list file
|
||||||
|
if [ -e /etc/apt/sources.list.d/sparkstore.list ];then
|
||||||
|
rm /etc/apt/sources.list.d/sparkstore.list
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Check if /usr/local/bin existed
|
# Check if /usr/local/bin existed
|
||||||
|
|||||||
Reference in New Issue
Block a user