修复:部分情况下无法正确配置aptss的问题

This commit is contained in:
shenmo 2025-09-17 14:49:29 +00:00
parent 4355d8d819
commit c89e30e0e4
2 changed files with 2 additions and 0 deletions

View File

@ -178,6 +178,7 @@ function hash_check() {
# 确保aptss存在 # 确保aptss存在
function ensure_aptss_exist() { function ensure_aptss_exist() {
if ! command -v aptss &>/dev/null; then if ! command -v aptss &>/dev/null; then
apt update
local deb_file="/tmp/spark-store-console-in-container_latest_all.deb" local deb_file="/tmp/spark-store-console-in-container_latest_all.deb"
if ! wget -O "$deb_file" "https://amber-ce-resource.spark-app.store/store/depends/spark-store-console-in-container_latest_all.deb"; then if ! wget -O "$deb_file" "https://amber-ce-resource.spark-app.store/store/depends/spark-store-console-in-container_latest_all.deb"; then

View File

@ -178,6 +178,7 @@ function hash_check() {
# 确保aptss存在 # 确保aptss存在
function ensure_aptss_exist() { function ensure_aptss_exist() {
if ! command -v aptss &>/dev/null; then if ! command -v aptss &>/dev/null; then
apt update
local deb_file="/tmp/spark-store-console-in-container_latest_all.deb" local deb_file="/tmp/spark-store-console-in-container_latest_all.deb"
if ! wget -O "$deb_file" "https://amber-ce-resource.spark-app.store/store/depends/spark-store-console-in-container_latest_all.deb"; then if ! wget -O "$deb_file" "https://amber-ce-resource.spark-app.store/store/depends/spark-store-console-in-container_latest_all.deb"; then