修改bug
This commit is contained in:
parent
25fff6d121
commit
bcb1fc1ff7
@ -30,10 +30,10 @@ fi
|
|||||||
extension=$1
|
extension=$1
|
||||||
case $extension in
|
case $extension in
|
||||||
mcrypt)
|
mcrypt)
|
||||||
libmcrypt_package=`get_config lib libmcrypt_package`
|
|
||||||
libmcrypt_package=`exists_download $libmcrypt_package`
|
|
||||||
# 安装libmcrypt
|
# 安装libmcrypt
|
||||||
if [ ! -d '/usr/local/libmcrypt' ];then
|
if [ ! -d '/usr/local/libmcrypt' ];then
|
||||||
|
libmcrypt_package=`get_config lib libmcrypt_package`
|
||||||
|
libmcrypt_package=`exists_download $libmcrypt_package`
|
||||||
decompression $libmcrypt_package
|
decompression $libmcrypt_package
|
||||||
libmcrypt_dir=`get_file_dir $libmcrypt_package`
|
libmcrypt_dir=`get_file_dir $libmcrypt_package`
|
||||||
cd $libmcrypt_dir
|
cd $libmcrypt_dir
|
||||||
|
|||||||
@ -55,6 +55,9 @@ case $server_type in
|
|||||||
fi
|
fi
|
||||||
rm -rf '/var/www/html/index.html'
|
rm -rf '/var/www/html/index.html'
|
||||||
echo -e '<?php\nphpinfo();' > '/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
|
else
|
||||||
exit $error
|
exit $error
|
||||||
fi
|
fi
|
||||||
@ -83,6 +86,9 @@ case $server_type in
|
|||||||
update_file '/usr/local/'$nginx_file_dir'/conf/vhost/default.conf' '# include rewrite.conf;' ' include rewrite.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'
|
rm -rf '/var/www/html/index.html'
|
||||||
echo -e '<?php\nphpinfo();' > '/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
|
else
|
||||||
exit $error
|
exit $error
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user