mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
systemvm: check if patchfile exists and is valid tarball before patching (#7953)
This commit is contained in:
parent
3d8cc63bc3
commit
51add0a066
@ -66,7 +66,7 @@ patch() {
|
||||
if [ "$TYPE" != "cksnode" ]; then
|
||||
while [ $retry -gt 0 ]
|
||||
do
|
||||
if [ -f $patchfile ]; then
|
||||
if tar tf $patchfile &> /dev/null; then
|
||||
eval $(validate_checksums $md5file $patchfile)
|
||||
if [ "$oldmd5" != "$newmd5" ] && [ -f ${patchfile} ] && [ "$newmd5" != "" ]
|
||||
then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user