Add git in installed packages and fix a shell condition

This commit is contained in:
Alexandre CATTEAU 2023-02-16 16:32:53 +01:00
parent 12a4816c0b
commit d1cdf52bda

View File

@ -23,7 +23,7 @@ install_packages() {
sed -i -e "s/$deb_apt_default_repo/$deb_apt_repo/g" /etc/apt/sources.list
apt update
apt upgrade -y
apt install -y vim tree tmux neofetch
apt install -y vim tree tmux neofetch git
}
add_users() {
@ -60,7 +60,7 @@ set_sshd_conf() {
}
set_cpufreq() {
if [ $default_hostname = 'orangepizero' ]; then
if [[ $default_hostname = 'orangepizero' ]]; then
echo "Setting CPU frequency to performance"
sed -i -e "s/GOVERNOR=ondemand/GOVERNOR=performance/g" /etc/default/cpufrequtils
fi