Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/gruntworker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@chrisrebert.com>2015-11-02 12:17:15 +0300
committerChris Rebert <code@chrisrebert.com>2015-11-02 12:17:15 +0300
commite2a7dde683ce6f102e4e77bdd7792c8f4fa99321 (patch)
tree09e6ce37e5bdeeaf3d5682df2c6a68f6bf728234
parent4b5f4eaf456b5e4e62109811be492c5bae7f979f (diff)
Fixes to unDockerized setup_droplet.sh
-rwxr-xr-xsetup_droplet.sh13
1 files 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