Commits

Saul Shanabrook  committed 19fbd6c

changed spaces to tabs

  • Participants
  • Parent commits f395768

Comments (0)

Files changed (1)

File Documents/linode_install

 set -e
 
 function update_system(){
-    echo 'STARTING UPDATE'
-    echo 'DISABLING PACMAN SYNCFIRST'
-    sed -i 's_SyncFirst_#SyncFirst_g' /etc/pacman.conf
-    echo 'UPDATING SOURCES'
-    pacman -Syy --noprogressbar --quiet
-    echo 'UPDATING TZDATA'
-    pacman -S --noconfirm tzdata --noprogressbar --quiet
-    echo 'UPDATING FILESYSTEM'
-    pacman -S filesystem --force --noconfirm --noprogressbar --quiet
-    echo 'ENABLING PACMAN SYCNFIRST'
-    sed -i 's_#SyncFirst_SyncFirst_g' /etc/pacman.conf
-    echo 'DELETING LOCAL.SH'
-    rm /etc/profile.d/locale.sh
-    echo 'PACMAN UPDATE'
-    pacman  -Syu --noconfirm --noprogressbar --quiet
-    echo 'INSTALL REFLECTOR'
-    pacman -Syu --noconfirm reflector --noprogressbar --quiet
-    echo 'MOVING .PACNEW'
-    mv /etc/rc.conf.pacnew /etc/rc.conf
-    mv /etc/locale.gen.pacnew /etc/locale.gen
-    echo 'USING REFLECTOR MIRRORS'
-    reflector -l 5 --sort rate --save /etc/pacman.d/mirrorlist
-    echo 'DELETING MIRRORLIST.PACNEW'
-    rm /etc/pacman.d/mirrorlist.pacnew
+	echo 'STARTING UPDATE'
+	echo 'DISABLING PACMAN SYNCFIRST'
+	sed -i 's_SyncFirst_#SyncFirst_g' /etc/pacman.conf
+	echo 'UPDATING SOURCES'
+	pacman -Syy --noprogressbar --quiet
+	echo 'UPDATING TZDATA'
+	pacman -S --noconfirm tzdata --noprogressbar --quiet
+	echo 'UPDATING FILESYSTEM'
+	pacman -S filesystem --force --noconfirm --noprogressbar --quiet
+	echo 'ENABLING PACMAN SYCNFIRST'
+	sed -i 's_#SyncFirst_SyncFirst_g' /etc/pacman.conf
+	echo 'DELETING LOCAL.SH'
+	rm /etc/profile.d/locale.sh
+	echo 'PACMAN UPDATE'
+	pacman  -Syu --noconfirm --noprogressbar --quiet
+	echo 'INSTALL REFLECTOR'
+	pacman -Syu --noconfirm reflector --noprogressbar --quiet
+	echo 'MOVING .PACNEW'
+	mv /etc/rc.conf.pacnew /etc/rc.conf
+	mv /etc/locale.gen.pacnew /etc/locale.gen
+	echo 'USING REFLECTOR MIRRORS'
+	reflector -l 5 --sort rate --save /etc/pacman.d/mirrorlist
+	echo 'DELETING MIRRORLIST.PACNEW'
+	rm /etc/pacman.d/mirrorlist.pacnew
 }
 function install_packages(){
-    echo 'ADDING MULTILIB AND YAOURT PACAKGES TO PACMAN.CONF'
-    cat <<-'EOF' >> /etc/pacman.conf
-    	[multilib]
-    	Include = /etc/pacman.d/mirrorlist
-    	[archlinuxfr] 
-    	Server = http://repo.archlinux.fr/$arch
-    EOF
-    echo 'REFRESH PACMAN PACKAGES'
-    pacman -Syy --noconfirm --noprogressbar --quiet
-    echo 'INSTALLING NEW PACKAGES'
-    pacman -Syu --noconfirm --noprogressbar --quiet python-virtualenvwrapper tk base-devel yaourt customizepkg rsync pacman-color bash-completion python-pip mercurial fortune-mod cowsay
-    echo 'UPDATING PACMAN'    
-    pacman -Syu --noconfirm --noprogressbar --quiet
+	echo 'ADDING MULTILIB AND YAOURT PACAKGES TO PACMAN.CONF'
+	cat <<-'EOF' >> /etc/pacman.conf
+		[multilib]
+		Include = /etc/pacman.d/mirrorlist
+		[archlinuxfr] 
+		Server = http://repo.archlinux.fr/$arch
+	EOF
+	echo 'REFRESH PACMAN PACKAGES'
+	pacman -Syy --noconfirm --noprogressbar --quiet
+	echo 'INSTALLING NEW PACKAGES'
+	pacman -Syu --noconfirm --noprogressbar --quiet python-virtualenvwrapper tk base-devel yaourt customizepkg rsync pacman-color bash-completion python-pip mercurial fortune-mod cowsay
+	echo 'UPDATING PACMAN'	
+	pacman -Syu --noconfirm --noprogressbar --quiet
 }
 
 function set_preferences(){
-    echo 'SETTING RC.CONF'
-    sed -e 's_TIMEZONE=_TIMEZONE="US/Eastern"_g' \
-    -e 's_HARDWARECLOCK=_HARDWARECLOCK="us"_g' \
-    -e 's:^LOCALE=:LOCALE=en_US.utf8:g' \
-    -e 's_HOSTNAME=_HOSTNAME="arch"_g' \
-    -e 's_crond)_crond sshd)_g' /etc/rc.conf >> /etc/rc.conf
-    echo 'ADDING ARCH HOSTS'
-    sed -i 's_n localhost_n localhost arch_g' /etc/hosts
-    echo 'ADDING CORRECT LOCALE'
-    sed -i 's/#en_US.UTF-8/en_US.UTF-8/g' /etc/locale.gen
-    echo 'GENERATING LOCALES'
-    locale-gen
-    
-    echo 'FIXING SUDOERS'
-    cat /etc/sudoers | sed -e "s/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/" > /etc/sudoers.tmp
-    rm /etc/sudoers
-    mv /etc/sudoers.tmp /etc/sudoers
-    chmod 0440 /etc/sudoers
-    chown 0 /etc/sudoers
+	echo 'SETTING RC.CONF'
+	sed -e 's_TIMEZONE=_TIMEZONE="US/Eastern"_g' \
+	-e 's_HARDWARECLOCK=_HARDWARECLOCK="us"_g' \
+	-e 's:^LOCALE=:LOCALE=en_US.utf8:g' \
+	-e 's_HOSTNAME=_HOSTNAME="arch"_g' \
+	-e 's_crond)_crond sshd)_g' /etc/rc.conf >> /etc/rc.conf
+	echo 'ADDING ARCH HOSTS'
+	sed -i 's_n localhost_n localhost arch_g' /etc/hosts
+	echo 'ADDING CORRECT LOCALE'
+	sed -i 's/#en_US.UTF-8/en_US.UTF-8/g' /etc/locale.gen
+	echo 'GENERATING LOCALES'
+	locale-gen
+	
+	echo 'FIXING SUDOERS'
+	cat /etc/sudoers | sed -e "s/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/" > /etc/sudoers.tmp
+	rm /etc/sudoers
+	mv /etc/sudoers.tmp /etc/sudoers
+	chmod 0440 /etc/sudoers
+	chown 0 /etc/sudoers
 }
 
 function add_user(){
-    echo 'ADDUSER'
-    useradd -g users -s /bin/bash -G wheel,power saul
-    echo 'CHANGE PW'
-    usermod -p $(echo saul123 | openssl passwd -1 -stdin) saul
+	echo 'ADDUSER'
+	useradd -g users -s /bin/bash -G wheel,power saul
+	echo 'CHANGE PW'
+	usermod -p $(echo saul123 | openssl passwd -1 -stdin) saul
 }
 
 function sync_home(){
-    echo 'CLONE HOME'
-    hg clone https://hg@bitbucket.org/saulshanabrook/arch-home /home/saul
-    echo 'CHOWN HOME'
-    chown -R saul:users /home/saul
+	echo 'CLONE HOME'
+	hg clone https://hg@bitbucket.org/saulshanabrook/arch-home /home/saul
+	echo 'CHOWN HOME'
+	chown -R saul:users /home/saul
 }
 
 update_system | sed "s/^/	/"