Unable to apply patch 5.0.1-5

Situation
Applying of the 5th security patch fails during the unzip. How do I correct this problem?

root@ip-10-0-1-83:~# docker exec -it $OE_INSTANCE unzip -o $PATCHFILE
BusyBox v1.27.2 (2017-12-12 10:41:50 GMT) multi-call binary.

Usage: unzip [-lnopq] FILE[.zip] [FILE]… [-x FILE…] [-d DIR]

Extract FILEs from ZIP archive

-l	List contents (with -q for short form)
-n	Never overwrite files (default: ask)
-o	Overwrite
-p	Print to stdout
-q	Quiet
-x FILE	Exclude FILEs
-d DIR	Extract into DIR

OpenEMR Version
I’m using OpenEMR version 5.0.1(4) -> trying to get to 5.0.1(5)

Operating System
I’m using: aws (Standard) with a t2.medium (ubuntu)

hi @Ralf_Lukner ,

Can you let us know all the steps you took prior to the above line?

thanks,
-brady

first I downloaded the 5-0-1-Patch-5.zip and then moved it into ~/.
Then, I ran the following as root:
PATCHFILE=5-0-1-Patch-5.zip
OE_INSTANCE=$(docker ps | grep _openemr | cut -f 1 -d " ")
/etc/cron.daily/duplicity-backups
I made a snapshot of RDS.
docker exec -it $OE_INSTANCE wget https://www.open-emr.org/patch/$PATCHFILE
docker exec -it $OE_INSTANCE unzip -o $PATCHFILE
docker exec -it $OE_INSTANCE rm $PATCHFILE
Then I visited http:///sql_patch.php in my browser and proceeded

At least that’s what I tried to do.

It failed at the unzip step.

Then I typed in the name of the patch file instead of using the $PATCHFILE

Hi,
But the unzip didn’t work, correct?
-brady

No. I had to put in the name of the patchfile for some reason.

what happens if you do:
echo $PATCHFILE
then do:
echo $OE_INSTANCE

root@ip-10-0-1-83:~# echo $PATCHFILE
5-0-1-Patch-5.zip
root@ip-10-0-1-83:~# echo $OE_INSTANCE
4024c1cd642a