Update fzf location
[dotfiles] / bootstrap_server.sh
1 #!/bin/sh
2
3 # not so well written shell script
4 # to make sure beloved packages are installed
5
6 apt-get update
7
8
9 # declare an array variable
10 # access: echo "${arr[0]}", "${arr[1]}"
11 declare -a pkgs = ("redis-server" "emacs24-nox" "tmux" "git" "git-core" "python3" "python3-doc" "python3-dev" "python-setuptools" "uwsgi-plugin-python" "postgresql-contrib" "postgresql" "libpq-dev" "libjpeg-dev" "zlib1g-dev" "libpng12-dev" "udisks" "hwinfo" "unzip" "gcc" "make" "build-essential" "fail2ban" "rkhunter" "chkrootkit" "ntp" "nginx-full" "apache2-utils" "fabric" "supervisor" "devscripts" "python-stdeb" "syslog" "openssl" "zip" "pdftk" "libncursesw5-dev" "libssl-dev" "libgdm-dev" "libsqlite3-dev" "tk-dev" "libreadline-dev" "bzip2-doc" "libbz2-dev" "tig" "lm-sensors" "hddtemp" "resolvconf" "ferm" "shellinabox" "linux-tools-3.16")
12
13 ## now loop through the above array
14 for i in "${pkgs[@]}"
15 do
16 dpkg --get-selections | grep $i > /dev/null 2>&1
17 if [ $? -ne 0 ]; then
18 apt-get install --quiet --assume-yes $i
19 fi
20 done
21
22 # install project requirements using pip
23 # if on on prod server, install requirements/prod.txt
24
25 # otherwise requirements/dev.txt