From 9614efa0aa91422fa80c8bf722410465ee876a68 Mon Sep 17 00:00:00 2001 From: shenmo Date: Sun, 11 Dec 2022 18:33:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8D=E7=84=B6=E9=80=89=E7=94=A8=E7=BB=9D?= =?UTF-8?q?=E5=AF=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/spark-store.postinst | 4 ++-- debian/spark-store.prerm | 3 ++- tool/aptss | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/debian/spark-store.postinst b/debian/spark-store.postinst index f73fc5d..edba50c 100755 --- a/debian/spark-store.postinst +++ b/debian/spark-store.postinst @@ -26,10 +26,10 @@ case "$1" in ln -s -f /opt/durapps/spark-store/bin/spark-store /usr/local/bin/spark-store ln -s -f /opt/durapps/spark-store/bin/ssinstall /usr/local/bin/ssinstall ln -s -f /opt/durapps/spark-store/bin/spark-dstore-patch /usr/local/bin/spark-dstore-patch - + ln -s -f /opt/durapps/spark-store/bin/aptss /usr/local/bin/ss-apt-fast ln -s -f /opt/durapps/spark-store/bin/aptss /usr/bin/aptss - ln -s -f /opt/durapps/spark-store/bin/apt-fast/ss-apt-fast /usr/bin/ss-apt-fast + # Compile the Sender module gcc /opt/durapps/spark-store/bin/ss-feedback/sender-d.sh.c -o /opt/durapps/spark-store/bin/ss-feedback/sender-d diff --git a/debian/spark-store.prerm b/debian/spark-store.prerm index be9c37d..2e8285f 100755 --- a/debian/spark-store.prerm +++ b/debian/spark-store.prerm @@ -7,9 +7,10 @@ rm /usr/local/bin/ssinstall rm /usr/local/bin/spark-dstore-patch rm /usr/local/bin/ussinstall rm /usr/local/bin/ussremove +rm /usr/local/bin/ss-apt-fast rm /usr/bin/aptss -rm /usr/bin/ss-apt-fast + rm -rf /etc/aptss/ diff --git a/tool/aptss b/tool/aptss index dac7208..1a2b761 100755 --- a/tool/aptss +++ b/tool/aptss @@ -25,7 +25,7 @@ sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sou bwrap --dev-bind / / \ --bind '/tmp/aptss-conf/apt-fast.conf' /etc/apt-fast.conf \ --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \ - ss-apt-fast "$@" --allow-downgrades + /opt/durapps/spark-store/bin/apt-fast/ss-apt-fast "$@" --allow-downgrades elif [ "$1" = "download" ];then @@ -34,7 +34,7 @@ elif [ "$1" = "download" ];then bwrap --dev-bind / / \ --bind '/tmp/aptss-conf/apt-fast.conf' /etc/apt-fast.conf \ --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list \ - ss-apt-fast "$@" --allow-downgrades + /opt/durapps/spark-store/bin/apt-fast/ss-apt-fast "$@" --allow-downgrades elif [ "$1" = "policy" ] || [ "$1" = "search" ];then