dounong5373 2015-04-20 12:42
浏览 64
已采纳

错误:“/ app / etc /”必须存在才能正常工具magento 1.9

I am trying to install the newly release security patch for magento 1.9. I am working on window system.

and I am getting the following error.

D:\xampp\htdocs\magento>sh PATCH_SUPEE-1533_EE_1.13.x_v1-2015-02-10-08-18-32.sh
ERROR: "/app/etc/" must exist for proper tool work.

I am running command by CMD and SH is working fine too

enter image description here

I tried with Git too. but getting same error

enter image description here

Not working on Linux too

enter image description here

can anyone tell me what is the exact issue and how it could be fixed.

Thanks

  • 写回答

6条回答 默认 最新

  • drf21989 2015-04-21 07:18
    关注

    Able to make it works on windows machine as well for PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh.

    Problem was: CURRENT_DIR=$PWD_BIN/ (line 60) and the value of $PWD_BIN is defined in same file PWD_BIN=which pwd (line 35) as which doesn't wok on windows so we will need to replace this value.

    1. Open bash
    2. Your current directory should be the root of magento.
    3. Run command 'pwd'
    4. It will give the out path of your current directory: Check screenshot
    5. Copy this path and edit file, on line 67 replace:

      CURRENT_DIR=$PWD_BIN/ to CURRENT_DIR=/d/xampp/htdocs/magento/

    Run patch with same commnd sh PATCH_SUPEE-5344_CE_1.8.0.0_v1-2015-02-10-08-10-38.sh

    Note: Make sure you replace '/d/xampp/htdocs/magento/' with your directory root.

    and it will work like a charm!!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?

悬赏问题

  • ¥50 求解vmware的网络模式问题 别拿AI回答
  • ¥24 EFS加密后,在同一台电脑解密出错,证书界面找不到对应指纹的证书,未备份证书,求在原电脑解密的方法,可行即采纳
  • ¥15 springboot 3.0 实现Security 6.x版本集成
  • ¥15 PHP-8.1 镜像无法用dockerfile里的CMD命令启动 只能进入容器启动,如何解决?(操作系统-ubuntu)
  • ¥30 请帮我解决一下下面六个代码
  • ¥15 关于资源监视工具的e-care有知道的嘛
  • ¥35 MIMO天线稀疏阵列排布问题
  • ¥60 用visual studio编写程序,利用间接平差求解水准网
  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?