#! /bin/bash # exit if a command failsset -e # install node & npmapt-get update && apt-get install -y nodejs npm # alias as nodeln -sf /usr/bin/nodejs /usr/bin/node # install redis commandernpm install -g redis-commander # cleanup package managerapt-get autoclean && apt-get cleanrm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#! /bin/bash
# exit if a command fails
set -e
# install node & npm
apt-get update && apt-get install -y nodejs npm
# alias as node
ln -sf /usr/bin/nodejs /usr/bin/node
# install redis commander
npm install -g redis-commander
# cleanup package manager
apt-get autoclean && apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*