Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
cat << 'EOL' >setupatlassian.sh
#!/bin/bash

atlassiandlurl=""
jdbcdlurl="https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.46.tar.gz"

sudo apt-get update
sudo apt-get install -y mysql-server php-mysql php libapache2-mod-php php-mcrypt
sudo mysql_secure_installation


mysqluser=
mysqlpass=
confluencedb=
confluencedbuser=
confluencedbpass=

mysql -u "$mysqluser" -p"$mysqlpass" -e "CREATE DATABASE $confluencedb CHARACTER SET utf8 COLLATE utf8_bin;"
mysql -u "$mysqluser" -p"$mysqlpass" -e "GRANT ALL on $confluencedb.* TO '$confluenceuser'@'localhost' IDENTIFIED BY '$confluencedbpass';"
mysql -u "$mysqluser" -p"$mysqlpass" -e "flush privileges;"


sudo service mysql restart

cd ~
wget "$atlassiandlurl"
chmod +x atlassian*bin
./atlassian*confluence*bin

cd /usr/src/
wget "$jdbcdlurl"
tar xvzf mysql*.tar.gz
cp /usr/src/mysql*/mysql*.jar /opt/atlassian/*/lib

reboot
EOL
chmod +x setupatlassian.sh
./setupatlassian.sh

 

cat << 'EOL' >setupatlassian.sh#!/bin/bash
atlassiandlurl=""jdbcdlurl="https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.46.tar.gz"
sudo apt-get updatesudo apt-get install -y mysql-server php-mysql php libapache2-mod-php php-mcryptsudo mysql_secure_installation

mysqluser=mysqlpass=confluencedb=confluencedbuser=confluencedbpass=
mysql -u "$mysqluser" -p"$mysqlpass" -e "CREATE DATABASE $confluencedb CHARACTER SET utf8 COLLATE utf8_bin;"mysql -u "$mysqluser" -p"$mysqlpass" -e "GRANT ALL on $confluencedb.* TO '$confluenceuser'@'localhost' IDENTIFIED BY '$confluencedbpass';"mysql -u "$mysqluser" -p"$mysqlpass" -e "flush privileges;"

sudo service mysql restart
cd ~wget "$atlassiandlurl"chmod +x atlassian*bin./atlassian*confluence*bin
cd /usr/src/wget "$jdbcdlurl"tar xvzf mysql*.tar.gzcp /usr/src/mysql*/mysql*.jar /opt/atlassian/*/lib
rebootEOLchmod +x setupatlassian.sh./setupatlassian.sh

  • No labels