v3.0.0.sh 869 B

12345678910111213141516171819202122232425
  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/report-forms-data-init?key=receiptsDetailedRename
  10. #初始化数据
  11. curl -s http://${domain}:${port}/v2/tools/init
  12. #初始化机台数据
  13. curl -s http://${domain}:${port}/v2/tools/report-calculation?key=machine
  14. #转移报表密码
  15. curl -s http://${domain}:${port}/v2/tools/report-forms-data-init?key=transfer_report_password
  16. #初始化财务数据
  17. curl -s http://${domain}:${port}/v2/tools/report-calculation?key=statement
  18. #初始化权限
  19. curl -s http://${domain}:${port}/v2/tools/init?key=rule
  20. sed -i 's/^max_allowed_packet = 1M/max_allowed_packet = 16M/' /etc/my.cnf