Add update before fetch

This commit is contained in:
Erope 2022-05-16 23:30:45 +08:00
parent e2e81ab308
commit 8a201424dd
No known key found for this signature in database
GPG Key ID: 934F29AB0411C0E9
2 changed files with 6 additions and 6 deletions

View File

@ -130,10 +130,10 @@ install_base() {
install_soft() {
# Arch官方库不包含selinux等组件
(command -v yum >/dev/null 2>&1 && yum install $* selinux-policy -y) ||
(command -v apt >/dev/null 2>&1 && apt install $* selinux-utils -y) ||
(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 $*) ||
(command -v apt-get >/dev/null 2>&1 && apt-get install $* selinux-utils -y)
(command -v apt-get >/dev/null 2>&1 && apt-get update && apt-get install $* selinux-utils -y)
}
install_dashboard() {

View File

@ -100,10 +100,10 @@ install_base() {
install_soft() {
# The official Arch library does not contain selinux components
(command -v yum >/dev/null 2>&1 && yum install $* selinux-policy -y) ||
(command -v apt >/dev/null 2>&1 && apt install $* selinux-utils -y) ||
(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 $*) ||
(command -v apt-get >/dev/null 2>&1 && apt-get install $* selinux-utils -y)
(command -v apt-get >/dev/null 2>&1 && apt-get update && apt-get install $* selinux-utils -y)
}
install_dashboard() {