mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-10 20:32:20 +08:00
若安装失败,尝试一次aptss update
This commit is contained in:
parent
c055e9bbb4
commit
78f81e0498
@ -107,8 +107,14 @@ DEBPATH=$(realpath "$1")
|
|||||||
|
|
||||||
package_name=$(dpkg-deb -f "$DEBPATH" Package)
|
package_name=$(dpkg-deb -f "$DEBPATH" Package)
|
||||||
echo "Package name is $package_name"
|
echo "Package name is $package_name"
|
||||||
|
|
||||||
try_run_output=$(/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh test-install-app "$DEBPATH")
|
try_run_output=$(/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh test-install-app "$DEBPATH")
|
||||||
try_run_ret="$?"
|
try_run_ret="$?"
|
||||||
|
if [ "$try_run_ret" -ne 0 ]; then
|
||||||
|
aptss update
|
||||||
|
try_run_output=$(/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh test-install-app "$DEBPATH")
|
||||||
|
try_run_ret="$?"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$try_run_ret" -ne 0 ]; then
|
if [ "$try_run_ret" -ne 0 ]; then
|
||||||
echo "OMG-IT-GOES-WRONG"
|
echo "OMG-IT-GOES-WRONG"
|
||||||
|
@ -125,6 +125,12 @@ if [ ! -z "$IS_SHA512SUM_CHECKED" ]; then
|
|||||||
try_run_output=$(/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh test-install-app "$DEBPATH")
|
try_run_output=$(/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh test-install-app "$DEBPATH")
|
||||||
try_run_ret="$?"
|
try_run_ret="$?"
|
||||||
|
|
||||||
|
if [ "$try_run_ret" -ne 0 ]; then
|
||||||
|
aptss update
|
||||||
|
try_run_output=$(/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh test-install-app "$DEBPATH")
|
||||||
|
try_run_ret="$?"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$try_run_ret" -ne 0 ]; then
|
if [ "$try_run_ret" -ne 0 ]; then
|
||||||
echo "OMG-IT-GOES-WRONG"
|
echo "OMG-IT-GOES-WRONG"
|
||||||
echo -e "${try_run_output}"
|
echo -e "${try_run_output}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user