3 # not so well written shell script
4 # to make sure beloved packages are installed
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" "gcc" "make" "build-essential" "fail2ban" "rkhunter" "chkrootkit" "ntp", "nginx-full" "apache2-utils" "fabric" "supervisor" "devscripts" "python-stdeb")
13 ## now loop through the above array
16 dpkg
--get-selections |
grep $i > /dev
/null
2>&1
18 apt-get
install --quiet --assume-yes $i
22 # install project requirements using pip
23 # if on on prod server, install requirements/prod.txt
25 # otherwise requirements/dev.txt