Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions examples/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@
# curl -o- https://raw.githubusercontent.com/amark/gun/master/examples/install.sh | bash

#debian/ubuntu
su -
apt-get install sudo -y
sudo apt-get update -y
sudo apt-get install curl git git-core screen -y
if [[ $(id -u) -ne 0 ]]; then
SUDO='sudo'
else
SUDO=''
fi

${SUDO} apt-get install sudo -y
${SUDO} apt-get update -y
${SUDO} apt-get install curl git git-core screen -y

#fedora/openSUSE
sudo yum check-update -y
sudo yum install curl git git-core screen -y
${SUDO} yum check-update -y
${SUDO} yum install curl git git-core screen -y

# install nodejs
git clone http://github.com/isaacs/nave.git
Expand Down