I am trying to install Patch 9767 but using following command
~$ sh PATCH_SUPEE-9767_CE_188.8.131.52_v1-2017-05-25-09-09-56.sh
But i got below error and patch is not install
: not found-9767_CE_184.108.40.206_v1-2017-05-25-09-09-56.sh: 7: PATCH_SUPEE-9767_CE_220.127.116.11_v1-2017-05-25-09-09-56.sh: PATCH_SUPEE-9767_CE_18.104.22.168_v1-2017-05-25-09-09-56.sh: 10: local: not in a function
So i am trying to install patch using php file using following code
$result = shell_exec('sh PATCH_SUPEE-9767_CE_22.214.171.124_v1-2017-05-25-09-09-56.sh');
but i got below error
ERROR: "/app/etc/" must exist for proper tool work.