v4.0.0.sh 478 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. git config core.ignorecase false
  3. chmod 777 /app/data/tmp -R
  4. service crond restart
  5. hostname=`hostname`
  6. domain=`php /app/bin/tools.php getDomain`
  7. port=`php /app/bin/tools.php getPort`
  8. #初始化
  9. curl -s http://${domain}:${port}/v2/tools/init
  10. #升级更新 v32-to-v4
  11. curl -s http://${domain}:${port}//v2/tools/v32-to-v4
  12. #如需系统初始仓库盘点 添加仓库明细数据
  13. curl -s http://${domain}:${port}/v2/tools/init?key=initInventoryDetailQuantity