- #!/usr/bin/env bash
- #安装ImageMagick和PHP扩展imagick
- if [ ! -x "$(command -v identify)" ]; then
- yum install -y ImageMagick ImageMagick-devel
- fi
- if [ -z `php -m|grep imagick` ];then
- echo "\n" | pecl install imagick
- service php-fpm restart
- fi
- 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=report
- curl -s http://${domain}:${port}/v2/tools/report-calculation?key=inventory
|