ssinstall

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
2026-03-08 05:00:11 +00:00
committed by Gitee
parent 2a54d4e238
commit 15902ef2f2

View File

@@ -376,10 +376,10 @@ function install_in_ace_env() {
$ace_cmd "ensure_aptss_exist"
# 首先尝试dry-run测试
if ! $ace_cmd aptss install --dry-run '$deb_path'; then
if ! $ace_cmd aptss install --dry-run "$deb_path"; then
echo "初始dry-run测试失败尝试更新后重试..."
$ace_cmd "aptss update"
if ! $ace_cmd aptss install --dry-run '$deb_path'; then
if ! $ace_cmd aptss install --dry-run "$deb_path"; then
echo "dry-run测试仍然失败放弃安装"
echo "OMG_IT_GOES_WRONG"
return 1
@@ -388,7 +388,7 @@ function install_in_ace_env() {
# dry-run成功后执行实际安装
$ace_cmd aptss install store.spark-app.app-runtime-base --no-install-recommends -yfq
if $ace_cmd dpkg -i '$deb_path' || aptss install '$deb_path' -yfq; then
if $ace_cmd dpkg -i "$deb_path" || aptss install "$deb_path" -yfq; then
return 0
else
return 1