代码拉取完成,页面将自动刷新
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
LANG=en_US.UTF-8
export PATH
echo "
+----------------------------------------------------------------------
| ThinkAdmin environmental preparation tools
+----------------------------------------------------------------------
| GtiHub : https://github.com/zoujingli/ThinkAdmin
+----------------------------------------------------------------------
| document : https://www.kancloud.cn/zoujingli/thinkadmin/323614
+----------------------------------------------------------------------
"
hasComposer=`command -v composer`
echo -e "\033[34mConfirm the existence of the command....\033[0m"
if [ ! -f "${hasComposer}" ]; then
echo -e "\033[31mComposer Not Found! Initialization cannot continue. \033[0m"
exit
fi
echo -e "\033[34mClean up the running environment....\033[0m"
rm -rf ./vendor
rm -rf ./thinkphp
rm -rf ./composer.lock
echo -e "\033[34mComposer install....\033[0m"
composer install --profile --prefer-dist --optimize-autoloader
echo -e "\033[34mMake Autoload....\033[0m"
composer dump-autoload --optimize
echo -e "\033[31mEnvironmental preparation success!\033[0m"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。