I have downloaded the correct versions for my installation (18.104.22.168) and copied them to my installation root (ls gives me app, downloader etc).
when I run 'sh PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh' in PuTTY I get the following error messages:-
bash-3.2$ sh PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh
which: no cat in ((null))
which: no patch in ((null))
which: no sed in ((null))
which: no pwd in ((null))
which: no basename in ((null))
PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh: line 38: PATCH_SUPEE-1533_ EE_1.13.x_v1-2015-02-10-08-18-32.sh: command not found
ERROR: "/app/etc/" must exist for proper tool work.
I can see what the problem is; to access the etc folder the command should be app/etc (without the first /)
My installation is in a subdomain on my site, which is in itself shared hosting. When in the store root 'pwd' gives:-
so referring to directories relative to root is never going to work.
How can I stop the script referring back to root?
Solved! Go to Solution.
I encountered the same problem with the patch file, and I have a similar server set-up like you do, so I just manually updated the files that are mentioned in the patch file itself. You can use your IDE or any text editor to open the .sh file (the patch file) and then edit the individual Magento files mentioned in the patch file--lines beginning with "+" are added, while lines beginning with "-" are deleted. All updates follow after the line that says "__PATCHFILE_FOLLOWS__" in the patch file.
Magento CE 22.214.171.124 is dated 2014-Nov-24, while patch 1533 is dated 2014-Oct-3, so I think you only need patch 5344 (2015-Feb-9). I double-checked and saw the patch 1533 updates already in my Magento 126.96.36.199 installation.
Before you replace the Magento files on your server, backup each file updated by patch 5344 first.
Hope this helps.