v3.0.0.sh 743 B

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