Created
May 13, 2016 23:46
-
-
Save tapajos/2efe140176f285028acb215a5de3eec3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print_green "Checking POW: " | |
POW_PATH="${HOME}/.pow" | |
if [ ! -d ${POW_PATH} ]; then | |
print_red "failed\n" | |
print_red "Installing POW\n" | |
curl get.pow.cx | sh | |
print_green "Checking POW: OK\n" | |
else | |
print_green "OK\n" | |
fi | |
print_green "Configuring POW: " | |
if [ ! -f "${POW_PATH}/project_1" ]; then | |
echo "3000" > "$POW_PATH/project_1" | |
fi | |
if [ ! -f "${POW_PATH}/project_2" ]; then | |
echo "3001" > "${POW_PATH}/project_2" | |
fi | |
print_green "OK\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment