Reorganize the process of account changes.

Former-commit-id: 4f3cb380dc28f4c103714e8c0eeaaa437c55617b
This commit is contained in:
fscarmen
2023-09-03 09:47:01 +00:00
parent d8f4edbe8c
commit 32e5cdb765
2 changed files with 467 additions and 212 deletions
+465 -212
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -372,6 +372,8 @@ check_dependencies() {
if echo "$SYSTEM" | grep -qE "Alpine|OpenWrt"; then
[ ! -s /opt/warp-go/warp-go ] && ( ${PACKAGE_UPDATE[int]}; ${PACKAGE_INSTALL[int]} curl wget grep bash xxd python3 tar )
else
# 对于 CentOS 系统,xxd 需要依赖 vim-common
[ "${SYSTEM}" = 'CentOS' ] && ${PACKAGE_INSTALL[int]} vim-common
DEPS_CHECK=("ping" "xxd" "wget" "curl" "systemctl" "ip" "python3")
DEPS_INSTALL=("iputils-ping" "xxd" "wget" "curl" "systemctl" "iproute2" "python3")
for ((c=0;c<${#DEPS_CHECK[@]};c++)); do [ ! $(type -p ${DEPS_CHECK[c]}) ] && [[ ! "${DEPS[@]}" =~ "${DEPS_INSTALL[c]}" ]] && DEPS+=(${DEPS_INSTALL[c]}); done