forked from ForumMagnum/ForumMagnum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprestart_lesswrong.sh
More file actions
45 lines (36 loc) · 1.55 KB
/
prestart_lesswrong.sh
File metadata and controls
45 lines (36 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
if tput setaf 1 &> /dev/null; then
purple=$(tput setaf 141)
blue=$(tput setaf 153)
bold=$(tput bold)
reset=$(tput sgr0)
else
purple=""
blue=""
bold=""
reset=""
fi
command -v meteor >/dev/null 2>&1 || {
echo "Vulcan requires Meteor but it's not installed. Trying to Install..." >&2;
if [ "$(uname)" == "Darwin" ]; then
# Mac OS platform
echo "🌋 ${bold}${purple}Good news you have a Mac and we will install it now! ${reset}";
curl https://install.meteor.com/ | bash;
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# GNU/Linux platform
echo "🌋 ${bold}${purple}Good news you are on GNU/Linux platform and we will install Meteor now! ${reset}";
curl https://install.meteor.com/ | bash;
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
# Windows NT platform
echo "🌋 ${bold}${purple}Oh no! you are on a Windows platform and you will need to install Meteor Manually! ${reset}";
echo "📖 ${blue}Meteor for Windows is available at: ${purple}https://install.meteor.com/windows";
exit;
fi
}
test -f settings.json || (echo "🛠 ${blue}Creating your own settings.json file...\n"; cp sample_settings.json settings.json;)
echo "🌋 ${bold}${purple}Welcome to the LessWrong development server!${reset}";
echo "📖 ${blue}We are using Vulcan, whose docs are available at: ${purple}http://docs.vulcanjs.org";
echo "📖 ${blue}You can find our Github repo here: ${purple}https://github.com/Discordius/Telescope/tree/devel";
if tput setaf 1 &> /dev/null; then
tput sgr0;
fi