#!/usr/bin/env bash 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?key=statistics #初始化报表 curl -s http://${domain}:${port}/v2/tools/init?key=report #初始化票据 curl -s http://${domain}:${port}/v2/tools/init?key=bill #初始化财务数据 curl -s http://${domain}:${port}/v2/tools/report-calculation?key=statement #同步账户 curl -s http://${domain}:${port}/v2/tools/report-forms-data-init?key=reportAccount #同步票据金额 curl -s http://${domain}:${port}/v2/tools/report-forms-data-init?key=billAmount #初始化管理员权限 curl -s http://${domain}:${port}/v2/tools/init?key=rule #初始化管理员权限 curl -s http://${domain}:${port}/v2/tools/report-forms-data-init?key=2019-02-14