v3.0.0.sh 645 B

123456789101112131415161718192021
  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. sed -i 's/^max_allowed_packet = 1M/max_allowed_packet = 16M/' /etc/my.cnf