From 971a5dcc63374bab1d42175f5b45751286b2174a Mon Sep 17 00:00:00 2001 From: shenmo Date: Thu, 1 Sep 2022 00:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=09=E5=AE=89=E8=A3=85=E6=97=B6=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=B7=B2=E6=9C=89=E7=9A=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/spark-store.postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/spark-store.postinst b/debian/spark-store.postinst index 199f892..e437c97 100755 --- a/debian/spark-store.postinst +++ b/debian/spark-store.postinst @@ -6,6 +6,11 @@ case "$1" in # config for aptss mkdir -p /etc/aptss/sources.list.d 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