This file contains hidden or 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
# su atlassian | |
# cd ~ | |
# This is where we'll install all the Atlassian apps. | |
mkdir Apps | |
cd Apps | |
# the MySQL connector we'll need frequently | |
curl -O http://mysql.he.net/Downloads/Connector-J/mysql-connector-java-5.1.15.tar.gz | |
tar -xzf mysql-connector-java-5.1.15.tar.gz |
This file contains hidden or 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
CREATE USER 'crowduser'@'localhost' IDENTIFIED BY 'some_pass'; | |
CREATE DATABASE crowd CHARACTER SET utf8 COLLATE utf8_bin; | |
GRANT ALL PRIVILEGES ON crowd.* TO 'crowduser'@'localhost'; | |
FLUSH PRIVILEGES; |
This file contains hidden or 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
sed -i -e 's/#crowd.home=\/var\/crowd-home/crowd.home=\/Users\/atlassian\/Documents\/crowd/' crowd/crowd-webapp/WEB-INF/classes/crowd-init.properties |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" > | |
<plist version="1.0"> | |
<dict> | |
<key>Disabled</key> | |
<false/> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>CATALINA_HOME</key> | |
<string>/Users/atlassian/Apps/crowd/apache-tomcat</string> |
This file contains hidden or 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
#!/bin/bash | |
function shutdown() | |
{ | |
date | |
echo "Shutting down Crowd" | |
$CATALINA_HOME/bin/catalina.sh stop | |
} | |
date |
This file contains hidden or 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
# we'll only have IPv4 addresses to look for | |
sed -i -e 's/UTF-8/UTF-8 -Djava.net.preferIPv4Stack=true/' crowd/apache-tomcat/bin/setenv.sh | |
# block anyone not on localhost IP | |
sed -i -e '/<Context>/ a\ | |
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\\.0\\.0\\.1" />' crowd/apache-tomcat/conf/context.xml | |
# make sure Tomcat knows it's behind a proxy. | |
# UPDATE THIS FOR YOUR ATLASSIAN SUITE SERVER HOSTNAME | |
sed -i -e 's/<Connector/<Connector proxyHost="atlassian.example.com" proxyPort="443" scheme="https"/' crowd/apache-tomcat/conf/server.xml |
This file contains hidden or 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
# get Apache to load our handcrafted Atlassian config | |
# line breaks below are intentional! | |
sudo sed -i -e '/<\/VirtualHost>/ i\ | |
Include /Users/atlassian/Documents/handcrafted.conf | |
' /etc/apache2/sites/0000_any_443_.conf |
This file contains hidden or 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
# su atlassian | |
# cd ~/Apps | |
# Get JIRA | |
curl -L -O http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-4.3.2.tar.gz | |
tar -xzf atlassian-jira-4.3.2.tar.gz | |
# Symlink so we can just call it "jira" | |
# NOTE: this is what Atlassian docs refer to as {JIRA_INSTALL} | |
ln -s atlassian-jira-4.3.2-standalone jira |
This file contains hidden or 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
# | |
# You will want to pick a real password here! | |
# | |
CREATE USER 'jirauser'@'localhost' IDENTIFIED BY 'some_pass'; | |
CREATE DATABASE jira CHARACTER SET utf8 COLLATE utf8_bin; | |
GRANT ALL PRIVILEGES ON jira.* to 'jirauser'@'localhost'; | |
FLUSH PRIVILEGES; | |
# In case you forgot to change the password above... | |
# SET PASSWORD for 'jirauser'@'localhost' = PASSWORD('someother_pass'); |
This file contains hidden or 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
sed -i -e 's/jira.home =/jira.home = \/Users\/atlassian\/Documents\/jira/' jira/atlassian-jira/WEB-INF/classes/jira-application.properties |
OlderNewer