You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
read -sp "Enter the new confluence user password: " confluence_usr_pwd
15
-
echo
16
-
read -p "Enter the confluence database you want to create (confluence_db): " confluence_db
17
-
confluence_db=${confluence_db:-confluence_db}
11
+
#update the answers below as per your requirements
12
+
# database name, user and password that Confluence will use
13
+
confluence_user=confluence_user
14
+
confluence_usr_pwd=ch@ngeTH!s
15
+
confluence_db=confluence_db
18
16
19
17
#copy your ssl certificates
20
-
echo -e "For SSL certificates to work properly you need to copy the certificate files into the right location. I assume you have them in below addresses:"
echo -e "\033[32mFor apache to work properly with ssl, change the mode to permissive\033[0m"
49
+
sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config &&echo SUCCESS ||echo FAILURE
50
+
51
+
56
52
#setup database server
57
53
/usr/pgsql-9.6/bin/postgresql96-setup initdb
58
54
@@ -64,24 +60,22 @@ sed -i "s|host all all 127.0.0.1/32.*|host all
64
60
systemctl enable postgresql-9.6
65
61
systemctl start postgresql-9.6
66
62
67
-
#prepare database: create database, user and grant permissions to the user
63
+
#prepare database:
64
+
#create database, user and grant permissions to the user
68
65
printf"CREATE USER $confluence_user WITH PASSWORD '$confluence_usr_pwd';\nCREATE DATABASE $confluence_db WITH ENCODING='UNICODE' LC_COLLATE='C' LC_CTYPE='C' TEMPLATE=template0;\nGRANT ALL PRIVILEGES ON DATABASE $confluence_db TO $confluence_user;"> myconf/confluence-db.sql
69
66
70
67
sudo -u postgres psql -f myconf/confluence-db.sql
71
68
72
69
73
-
#Selinux config mode update to permissive
74
-
75
-
echo -e "\033[32mFor apache to work properly with ssl, change the mode to permissive\033[0m"
76
-
sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config &&echo SUCCESS ||echo FAILURE
sed -i "s|8090|$http_port|g" myconf/response.varfile &&echo"http port updated on successfully"||echo"server port update on confluence.conf failed"
105
101
sed -i "s|8000|$control_port|g" myconf/response.varfile &&echo"control port updated on successfully"||echo"server port update on confluence.conf failed"
0 commit comments