修改bug

This commit is contained in:
root 2019-05-22 23:18:47 +08:00
parent 25fff6d121
commit bcb1fc1ff7
2 changed files with 10 additions and 4 deletions

View File

@ -30,10 +30,10 @@ fi
extension=$1
case $extension in
mcrypt)
libmcrypt_package=`get_config lib libmcrypt_package`
libmcrypt_package=`exists_download $libmcrypt_package`
# 安装libmcrypt
if [ ! -d '/usr/local/libmcrypt' ];then
libmcrypt_package=`get_config lib libmcrypt_package`
libmcrypt_package=`exists_download $libmcrypt_package`
decompression $libmcrypt_package
libmcrypt_dir=`get_file_dir $libmcrypt_package`
cd $libmcrypt_dir

View File

@ -54,7 +54,10 @@ case $server_type in
mkdir -p '/var/www/html'
fi
rm -rf '/var/www/html/index.html'
echo -e '<?php\n phpinfo();' > '/var/www/html/index.php'
echo -e '<?php\nphpinfo();' > '/var/www/html/index.php'
append_file '/etc/profile' 'export PATH='$path_dir'/bin:$PATH'
source '/etc/profile'
else
exit $error
fi
@ -82,7 +85,10 @@ case $server_type in
update_file '/usr/local/'$nginx_file_dir'/conf/vhost/default.conf' '# include enable-php.conf;' ' include enable-php.conf;'
update_file '/usr/local/'$nginx_file_dir'/conf/vhost/default.conf' '# include rewrite.conf;' ' include rewrite.conf;'
rm -rf '/var/www/html/index.html'
echo -e '<?php\n phpinfo();' > '/var/www/html/index.php'
echo -e '<?php\nphpinfo();' > '/var/www/html/index.php'
append_file '/etc/profile' 'export PATH='$path_dir'/bin:$PATH'
source '/etc/profile'
else
exit $error
fi