PATCH_SUPEE-9767 Issue
-
09-10-2020 - |
Question
I am trying to install Patch 9767 but using following command
~$ sh PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh
But i got below error and patch is not install
: not found-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh: 7: PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh:
PATCH_SUPEE-9767_CE_1.9.3.0_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_1.9.3.0_v1-2017-05-25-09-09-56.sh');
but i got below error
ERROR: "/app/etc/" must exist for proper tool work.
Solution
use following command before.
sudo chmod +x sh PATCH_SUPEE-9767_CE_1.9.3.0_v1-2017-05-25-09-09-56.sh
And after use
./ patch file name.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange