mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 09:38:13 -05:00
Revert "Merge pull request #262 from dysf888/patch-2 [no ci]"
This reverts commitc58af25414
, reversing changes made to405f852c7d
.
This commit is contained in:
parent
e0618bacb5
commit
64ef1a250b
@ -2,7 +2,7 @@
|
||||
|
||||
#========================================================
|
||||
# System Required: CentOS 7+ / Debian 8+ / Ubuntu 16+ / Alpine 3+ /
|
||||
# Arch 仅测试了一次,如有问题带截图反馈 dysf888@pm.me
|
||||
# Arch 未测试
|
||||
# Description: 哪吒监控安装脚本
|
||||
# Github: https://github.com/naiba/nezha
|
||||
#========================================================
|
||||
@ -126,9 +126,10 @@ install_base() {
|
||||
}
|
||||
|
||||
install_soft() {
|
||||
# Arch官方库不包含selinux等组件
|
||||
(command -v yum >/dev/null 2>&1 && yum makecache && yum install $* selinux-policy -y) ||
|
||||
(command -v apt >/dev/null 2>&1 && apt update && apt install $* selinux-utils -y) ||
|
||||
(command -v pacman >/dev/null 2>&1 && pacman -Syu $* yay --noconfirm) && echo -e "${red}提示: ${plain} 出现输入框请输入nezha并回车 ${red}!!!共三次!!!${plain}\n" && useradd -m nezha && passwd nezha && [[ $(egrep "^[^#]*nezha.*ALL)" /etc/sudoers) ]] || sed -i "$ a\nezha ALL=(ALL) ALL" /etc/sudoers && (command -v yay >/dev/null 2>&1 && sudo -iu nezha yay -S libselinux --noconfirm) && pkill -u nezha && userdel nezha && echo -e "${red}提示: ${plain}已删除用户nezha\n"||
|
||||
(command -v pacman >/dev/null 2>&1 && pacman -Syu $*) ||
|
||||
(command -v apt-get >/dev/null 2>&1 && apt-get update && apt-get install $* selinux-utils -y) ||
|
||||
(command -v apk >/dev/null 2>&1 && apk update && apk add $* -f)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user