Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer #32

Merged
merged 23 commits into from
Jun 25, 2013
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
install.sh again... added sudo...
  • Loading branch information
evo42 committed Jun 20, 2013
commit 18f5a03ad85ca144efec6b5c2dec0461b7bb97f1
22 changes: 11 additions & 11 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ TARBALL_URL="https://codeload.github.com/evo42/runty/tar.gz/installer"
#TARBALL_URL="https://apa.runty/installer.tar.gz"

INSTALL_TMPDIR=".runty-install-tmp"
rm -rf "$INSTALL_TMPDIR"
mkdir "$INSTALL_TMPDIR"
sudo rm -rf "$INSTALL_TMPDIR"
sudo mkdir "$INSTALL_TMPDIR"

echo ""
echo "Downloading Runty. The NoCMS"

curl --progress-bar --fail "$TARBALL_URL" | tar -xzf - -C "$INSTALL_TMPDIR"
sudo curl --progress-bar --fail "$TARBALL_URL" | sudo tar -xzf - -C "$INSTALL_TMPDIR"
# bomb out if it didn't work, eg no net
test -x "${INSTALL_TMPDIR}/runty-installer/runty/app.js"
mv "${INSTALL_TMPDIR}/runty-installer/runty" "./runty"
rm -rf "${INSTALL_TMPDIR}"
sudo mv "${INSTALL_TMPDIR}/runty-installer/runty" "./runty"
sudo rm -rf "${INSTALL_TMPDIR}"
# double-checking
test -x "runty/app.js"

Expand All @@ -49,8 +49,8 @@ else
fi

# copy config files
mv runty/aloha-editor.js.example ./aloha-editor.js
mv runty/user.json.example ./user.json
sudo mv runty/aloha-editor.js.example ./aloha-editor.js
sudo mv runty/user.json.example ./user.json

# chown
if [ "$UNAME" = "Darwin" ] ; then
Expand All @@ -61,19 +61,19 @@ elif [ "$UNAME" = "Linux" ] ; then
CHOWN="www-data:www-data"
fi

chmod -R 755 ./*
#sudo chown -R "$CHOWN" ./*
sudo chmod -R 755 ./*
sudo chown -R "$CHOWN" ./*

echo "Runty. The NoCMS has been installed."


cat <<"EOF"

Sign in to https://yourdomain.com/runty to start editing pages.
Sign in to https://<your-domain.com>/runty to start editing pages.

Or see the docs at:

runty.io/guides
https://runty.io/guides

EOF

Expand Down