Browse Source

remove some shell command

oubo 5 years ago
parent
commit
5b3e721d7e
1 changed files with 25 additions and 25 deletions
  1. 25 25
      data/upgrade/v3.0.0/v3.0.0.sh

+ 25 - 25
data/upgrade/v3.0.0/v3.0.0.sh

@@ -35,31 +35,31 @@ curl -s http://${domain}:${port}/v2/tools/init?key=setAffairBuildin
 #初始化仓库同步
 curl -s http://${domain}:${port}/v2/tools/init?key=initWarehouseSyn
 #安装wkhtmltopdf
-if [ ! -x "$(command -v wkhtmltopdf)"  ]; then
-    yum install -y urw-fonts libXext openssl-devel libXrender
-    wget -O /usr/share/fonts/simsun.ttc  http://mi.lacecdn.com/docker/simsun.ttc
-    wget -O /usr/share/fonts/simfang.ttf  http://mi.lacecdn.com/docker/simfang.ttf
-    wget -O /tmp/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz http://mi.lacecdn.com/docker/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
-    cd /tmp
-    tar xvfJ wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
-    rm -rf /usr/local/wkhtmltox
-    mv wkhtmltox /usr/local/
-    chmod +x /usr/local/wkhtmltox/bin/wkhtmltopdf
-    chmod +x /usr/local/wkhtmltox/bin/wkhtmltoimage
-    ln -sf /usr/local/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
-    ln -sf /usr/local/wkhtmltox/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
-    rm -rf /tmp/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
-fi
+#if [ ! -x "$(command -v wkhtmltopdf)"  ]; then
+#    yum install -y urw-fonts libXext openssl-devel libXrender
+#    wget -O /usr/share/fonts/simsun.ttc  http://mi.lacecdn.com/docker/simsun.ttc
+#    wget -O /usr/share/fonts/simfang.ttf  http://mi.lacecdn.com/docker/simfang.ttf
+#    wget -O /tmp/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz http://mi.lacecdn.com/docker/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
+#    cd /tmp
+#    tar xvfJ wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
+#    rm -rf /usr/local/wkhtmltox
+#    mv wkhtmltox /usr/local/
+#    chmod +x /usr/local/wkhtmltox/bin/wkhtmltopdf
+#    chmod +x /usr/local/wkhtmltox/bin/wkhtmltoimage
+#    ln -sf /usr/local/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
+#    ln -sf /usr/local/wkhtmltox/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
+#    rm -rf /tmp/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
+#fi
 
-sed -i 's/^max_allowed_packet = 1M/max_allowed_packet = 16M/' /etc/my.cnf
+#sed -i 's/^max_allowed_packet = 1M/max_allowed_packet = 16M/' /etc/my.cnf
 
-if [ ! -f /etc/init.d/redis ];then
-    wget -O /etc/init.d/redis http://mi.lacecdn.com/docker/init.d.redis
-    chmod +x /etc/init.d/redis
-    service redis start
-    chkconfig redis on
-fi
+#if [ ! -f /etc/init.d/redis ];then
+#    wget -O /etc/init.d/redis http://mi.lacecdn.com/docker/init.d.redis
+#    chmod +x /etc/init.d/redis
+#    service redis start
+#    chkconfig redis on
+#fi
 
-if [ -z `php -m | grep imagick` ];then
-   echo |  pecl install imagick
-fi
+#if [ -z `php -m | grep imagick` ];then
+#   echo |  pecl install imagick
+#fi