检验是否安装转到worker

This commit is contained in:
2023-03-09 17:54:31 +08:00
parent e865431411
commit 22cb1f6058
4 changed files with 26 additions and 52 deletions

View File

@@ -27,30 +27,10 @@ fi
DEBPATH=`realpath $1`
echo ------------------------------------------------------------
try_run_output=$(aptss --dry-run install $DEBPATH)
try_run_output=$(/opt/durapps/spark-store/bin/update-upgrade/ss-do-upgrade-worker.sh test-install-app $2)
try_run_ret="$?"
if [ "$try_run_ret" -ne 0 ]
then
echo "Package manager quit with exit code.Here is the log"
echo "包管理器以错误代码退出.日志如下"
echo
echo -e "${try_run_output}"
echo "Will try after run aptss update"
echo "将会在aptss update之后再次尝试"
aptss update
echo ----------------------------------------------------------------------------
try_run_output=$(aptss --dry-run install $DEBPATH)
try_run_ret="$?"
if [ "$try_run_ret" -ne 0 ]
then
echo "Package manager quit with exit code.Here is the log"
echo "包管理器以错误代码退出.日志如下"
echo
echo -e "${try_run_output}"
exit "$try_run_ret"
fi
if [ "$try_run_ret" -ne 0 ];then
exit $try_run_ret
fi