Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/php/all_test.sh

48 lines
1.3 KiB

6 years ago
#! /bin/sh
export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/share/man:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
DIR=$(cd "$(dirname "$0")"; pwd)
# cd /www/server/mdserver-web/plugins/php && bash all_test.sh
6 years ago
# cd /www/server/mdserver-web/plugins/php/versions/74/ && bash openssl.sh install 74
3 years ago
# cd /www/server/mdserver-web/plugins/php/versions/81/ && bash imagemagick.sh install 81
# cd /www/server/mdserver-web/plugins/php/versions/70/ && bash imagemagick.sh install 70
# PHP_VER=52
# echo "php${PHP_VER} -- start"
# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
# cd $DIR && /bin/bash install.sh install $PHP_VER
# for ii in $cmd_ext
# do
# if [ "install.sh" == "$ii" ];then
# echo '' > /tmp/t.log
# else
# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
# fi
# done
# echo "php${PHP_VER} -- end"
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81)
# PHP_VER_LIST=(81)
for PHP_VER in ${PHP_VER_LIST[@]}; do
echo "php${PHP_VER} -- start"
if [ -d /www/server/php/${PHP_VER} ];then
cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
for ii in $cmd_ext
do
echo "${ii}"
if [ "install.sh" == "$ii" ];then
echo '' > /tmp/t.log
else
cd $DIR/versions/$PHP_VER/ && bash $ii install ${PHP_VER}
fi
done
6 years ago
fi
echo "php${PHP_VER} -- end"
6 years ago
done
6 years ago
6 years ago
rm -rf /tmp/t.log