aptss 支持reinstall 指令

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
2025-10-21 01:57:03 +00:00
committed by momen
parent 74a8e5c669
commit 796bc1d1c7

View File

@@ -53,6 +53,7 @@ case $(arch) in
esac
fi
SS_APT_FAST="/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast"
@@ -62,7 +63,7 @@ is_empty_dir(){
function update_list(){
curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/aptss.list "${SPARK_DOWNLOAD_SERVER_URL}/${UPSTREAM_CATOGARY}${STORE_LIST_URL}.list"
log.info "${UPSTREAM_CATOGARY}${STORE_LIST_URL}.list update done"
log.info "${UPSTREAM_CATOGARY}${STORE_LIST_URL}.list update done"
}
function update_conf(){
@@ -113,7 +114,7 @@ fi
if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" = "full-upgrade" ] || [ "$1" = "dist-upgrade" ]; then
if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" = "full-upgrade" ] || [ "$1" = "reinstall" ] || [ "$1" = "dist-upgrade" ]; then