-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-package.sh
More file actions
29 lines (25 loc) · 1007 Bytes
/
install-package.sh
File metadata and controls
29 lines (25 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# 安装依赖用
# 233年6月21日の大改
#ver beta0.1
current_user=$(whoami)
if [ "$current_user" != "root" ]; then
echo -e "\e[1;31m请使用root用户来使用此脚本!\e[0m"
exit 1
fi
echo -e "\e[1;31m权限检查通过,开始安装依赖包...\e[0m"
echo -e "\e[1;36m 少女祈祷中..\e[0m"
echo -e "\e[1;31m正在安装依赖的软件包...\e[0m"
apt update && apt upgrade -y
apt install wget curl redis-server chromium-browser git -y
git config --global http.sslVerify false # 配置 Git 不验证 ssl 证书,以便拉取项目
# 启动 redis 服务,使用默认参数配置保存数据
redis-server --save 900 1 --save 300 10 --daemonize yes
apt install -y --force-yes --no-install-recommends fonts-wqy-microhei
clear
echo "安装依赖完成,5秒后返回脚本"
for ((countdown=5; countdown>0; countdown--)); do
echo "倒计时: $countdown"
sleep 1
done
bash <(curl -sL https://raw.githubusercontent.com/htadiy/termux-yunzai-cv-script/main/miao-menu.sh)