From e2a7dde683ce6f102e4e77bdd7792c8f4fa99321 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 2 Nov 2015 01:17:15 -0800 Subject: Fixes to unDockerized setup_droplet.sh --- setup_droplet.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/setup_droplet.sh b/setup_droplet.sh index ac0e469..56db8d3 100755 --- a/setup_droplet.sh +++ b/setup_droplet.sh @@ -12,7 +12,6 @@ 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 @@ -20,21 +19,19 @@ ufw status verbose 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 @@ -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 -- cgit v1.2.3