v1.3.5.sh 497 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. #安装ImageMagick和PHP扩展imagick
  3. if [ ! -x "$(command -v identify)" ]; then
  4. yum install -y ImageMagick ImageMagick-devel
  5. fi
  6. if [ -z `php -m|grep imagick` ];then
  7. echo "\n" | pecl install imagick
  8. service php-fpm restart
  9. fi
  10. hostname=`hostname`
  11. domain=`php /app/bin/tools.php getDomain`
  12. port=`php /app/bin/tools.php getPort`
  13. curl -s http://${domain}:${port}/v2/tools/init?key=report
  14. curl -s http://${domain}:${port}/v2/tools/report-calculation?key=statement