mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-09 11:52:21 +08:00
检验是否安装转到worker
This commit is contained in:
parent
e865431411
commit
22cb1f6058
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -1,5 +1,6 @@
|
|||||||
spark-store (4.2.3.2~Reason9) stable; urgency=medium
|
spark-store (4.2.3.2~Reason9) stable; urgency=medium
|
||||||
* sender-d.sh
|
* sender-d.sh
|
||||||
|
* ssinstall和ssaudit的安装测试转到upgrade-worker
|
||||||
|
|
||||||
-- shenmo <shenmo@spark-app.store>
|
-- shenmo <shenmo@spark-app.store>
|
||||||
|
|
||||||
|
26
tool/ssaudit
26
tool/ssaudit
@ -27,30 +27,10 @@ fi
|
|||||||
|
|
||||||
DEBPATH=`realpath $1`
|
DEBPATH=`realpath $1`
|
||||||
echo ------------------------------------------------------------
|
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="$?"
|
try_run_ret="$?"
|
||||||
|
if [ "$try_run_ret" -ne 0 ];then
|
||||||
if [ "$try_run_ret" -ne 0 ]
|
exit $try_run_ret
|
||||||
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
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -92,33 +92,12 @@ if [ ! -z "$IS_MD5SUM_CHECKD" ];then
|
|||||||
echo "校验成功,开始安装"
|
echo "校验成功,开始安装"
|
||||||
echo ----------------------------------------------------------------------------------
|
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="$?"
|
try_run_ret="$?"
|
||||||
|
if [ "$try_run_ret" -ne 0 ];then
|
||||||
if [ "$try_run_ret" -ne 0 ]
|
exit $try_run_ret
|
||||||
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
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
dpkg -i "$DEBPATH" || aptss install -yf
|
dpkg -i "$DEBPATH" || aptss install -yf
|
||||||
|
|
||||||
#### --delete
|
#### --delete
|
||||||
|
@ -33,9 +33,22 @@ case $1 in
|
|||||||
echo "$IS_UPGRADE_ERROR" > /tmp/spark-store-app-upgrade-status.txt
|
echo "$IS_UPGRADE_ERROR" > /tmp/spark-store-app-upgrade-status.txt
|
||||||
;;
|
;;
|
||||||
test-install-app)
|
test-install-app)
|
||||||
|
|
||||||
|
try_run_output=$(aptss --dry-run install $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 $2)
|
try_run_output=$(aptss --dry-run install $2)
|
||||||
try_run_ret="$?"
|
try_run_ret="$?"
|
||||||
|
|
||||||
if [ "$try_run_ret" -ne 0 ]
|
if [ "$try_run_ret" -ne 0 ]
|
||||||
then
|
then
|
||||||
echo "Package manager quit with exit code.Here is the log"
|
echo "Package manager quit with exit code.Here is the log"
|
||||||
@ -45,6 +58,7 @@ case $1 in
|
|||||||
exit "$try_run_ret"
|
exit "$try_run_ret"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user