v3.0.0.sh 560 B

12345678910111213141516171819
  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/report-calculation?key=机台报表数据
  12. #转移报表密码
  13. curl -s http://${domain}:${port}/v2/tools/report-forms-data-init?key=转移报表密码
  14. sed -i 's/^max_allowed_packet = 1M/max_allowed_packet = 16M/' /etc/my.cnf