Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
Fixes to unDockerized setup_droplet.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Nov 2, 2015
1 parent 4b5f4ea commit e2a7dde
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions setup_droplet.sh
Expand Up @@ -12,29 +12,26 @@ aptitude remove pppconfig pppoeconf ppp
ufw default allow outgoing
ufw default deny incoming
ufw allow ssh
ufw allow www # not necessary for gruntworker itself
ufw enable
ufw status verbose

# install Node.js
aptitude install build-essential # for native addons
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
DISTRO=$(lsb_release -c -s)
echo 'deb https://deb.nodesource.com/node_5.x ${DISTRO} main' > /etc/apt/sources.list.d/nodesource.list
echo 'deb-src https://deb.nodesource.com/node_5.x ${DISTRO} main' >> /etc/apt/sources.list.d/nodesource.list
echo "deb https://deb.nodesource.com/node_5.x ${DISTRO} main" > /etc/apt/sources.list.d/nodesource.list
echo "deb-src https://deb.nodesource.com/node_5.x ${DISTRO} main" >> /etc/apt/sources.list.d/nodesource.list
aptitude update
aptitude install nodejs
aptitude install nodejs-legacy # out of compatibility paranoia, though I philosophically agree with Debian here

# setup gruntworker itself
apt-get -y --no-install-recommends install openssh-client git python3 python3-dev # other dependencies
npm install -g grunt-cli # dependency
git clone git@github.com:twbs/gruntworker.git ~/gruntworker
mkdir -p /usr/local/bin
git clone https://github.com/twbs/gruntworker.git ~/gruntworker
cp ~/gruntworker/gruntworker.sh /usr/local/bin/
cp ~/gruntworker/gruntworker.py /usr/local/bin/
chmod u=rwx,go=rx /usr/local/bin/gruntworker.*
useradd gruntworker
useradd -m gruntworker

# setup SSH keys
su gruntworker # USER: gruntworker
Expand All @@ -50,8 +47,6 @@ git remote set-url --push origin git@github.com:twbs/bootstrap.git
git config core.fileMode false
git config user.name "Bootstrap's Grunt bot"
git config user.email 'twbs-grunt@users.noreply.github.com'
# setup Bootstrap
npm install

# setup cron
exit # USER: root
Expand Down

0 comments on commit e2a7dde

Please sign in to comment.