Add git in installed packages and fix a shell condition
This commit is contained in:
		
							
								
								
									
										4
									
								
								setup.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								setup.sh
									
									
									
									
									
								
							@@ -23,7 +23,7 @@ install_packages() {
 | 
				
			|||||||
  sed -i -e "s/$deb_apt_default_repo/$deb_apt_repo/g" /etc/apt/sources.list
 | 
					  sed -i -e "s/$deb_apt_default_repo/$deb_apt_repo/g" /etc/apt/sources.list
 | 
				
			||||||
  apt update
 | 
					  apt update
 | 
				
			||||||
  apt upgrade -y
 | 
					  apt upgrade -y
 | 
				
			||||||
  apt install -y vim tree tmux neofetch
 | 
					  apt install -y vim tree tmux neofetch git
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add_users() {
 | 
					add_users() {
 | 
				
			||||||
@@ -60,7 +60,7 @@ set_sshd_conf() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set_cpufreq() {
 | 
					set_cpufreq() {
 | 
				
			||||||
  if [ $default_hostname = 'orangepizero' ]; then
 | 
					  if [[ $default_hostname = 'orangepizero' ]]; then
 | 
				
			||||||
    echo "Setting CPU frequency to performance"
 | 
					    echo "Setting CPU frequency to performance"
 | 
				
			||||||
    sed -i -e "s/GOVERNOR=ondemand/GOVERNOR=performance/g" /etc/default/cpufrequtils
 | 
					    sed -i -e "s/GOVERNOR=ondemand/GOVERNOR=performance/g" /etc/default/cpufrequtils
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user