Merge pull request #205 from Erope/master [no ci]
Add update before fetch Co-authored-by: Erope <44471469+Erope@users.noreply.github.com>
This commit is contained in:
		
						commit
						915a431515
					
				@ -130,10 +130,10 @@ install_base() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
install_soft() {
 | 
					install_soft() {
 | 
				
			||||||
    # Arch官方库不包含selinux等组件
 | 
					    # Arch官方库不包含selinux等组件
 | 
				
			||||||
    (command -v yum >/dev/null 2>&1 && yum install $* selinux-policy -y) ||
 | 
					    (command -v yum >/dev/null 2>&1 && yum makecache && yum install $* selinux-policy -y) ||
 | 
				
			||||||
        (command -v apt >/dev/null 2>&1 && apt install $* selinux-utils -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 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() {
 | 
					install_dashboard() {
 | 
				
			||||||
 | 
				
			|||||||
@ -100,10 +100,10 @@ install_base() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
install_soft() {
 | 
					install_soft() {
 | 
				
			||||||
    # The official Arch library does not contain selinux components
 | 
					    # The official Arch library does not contain selinux components
 | 
				
			||||||
    (command -v yum >/dev/null 2>&1 && yum install $* selinux-policy -y) ||
 | 
					    (command -v yum >/dev/null 2>&1 && yum makecache && yum install $* selinux-policy -y) ||
 | 
				
			||||||
        (command -v apt >/dev/null 2>&1 && apt install $* selinux-utils -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 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() {
 | 
					install_dashboard() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user