123456789101112131415161718192021 |
- #!/usr/bin/env bash
- git config core.ignorecase false
- chmod 777 /app/data/tmp -R
- service crond restart
- hostname=`hostname`
- domain=`php /app/bin/tools.php getDomain`
- port=`php /app/bin/tools.php getPort`
- #初始化数据
- curl -s http://${domain}:${port}/v2/tools/init
- #初始化机台数据
- curl -s http://${domain}:${port}/v2/tools/report-calculation?key=machine
- #转移报表密码
- curl -s http://${domain}:${port}/v2/tools/report-forms-data-init?key=transfer_report_password
- #初始化财务数据
- curl -s http://${domain}:${port}/v2/tools/report-calculation?key=statement
- sed -i 's/^max_allowed_packet = 1M/max_allowed_packet = 16M/' /etc/my.cnf
|