forked from klcodanr/Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-st.sh
More file actions
executable file
·71 lines (53 loc) · 1.46 KB
/
deploy-st.sh
File metadata and controls
executable file
·71 lines (53 loc) · 1.46 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
function installpackage
{
echo "Uploading into $server..."
curl -u admin:admin -F name=com.st.olm.cq.st-com.content-$version.zip -F file=@com.st.olm.cq.st-com.content-$version.zip http://localhost:$port/crx/packmgr/service.jsp
echo "Installing on $server..."
curl -u admin:admin -F group=com.st.olm.cq -F name=com.st.olm.cq.st-com.content -F version=$version http://localhost:$port/crx/packmgr/service.jsp?cmd=inst
echo "Installation to $server complete!"
}
version=$1
if [ "$version" = "" ]; then
echo "No deploy version specified!"
exit 1
fi
~/scripts/close_tunnels.sh
~/scripts/create_dev_tunnel.sh
~/scripts/create_qa_tunnel.sh
~/scripts/create_prod_tunnel.sh
cd /tmp
echo "Copying release $version..."
cp ~/Box\ Sync/_\ Project\ Delivery/2014_ST\ Micro/releases/com/st/olm/cq/com.st.olm.cq.st-com.content/$version/com.st.olm.cq.st-com.content-$version.zip .
port='8082'
server='DEV Author'
installpackage
port='8084'
server='DEV Publish'
installpackage
echo -e "Installation to DEV complete!\n"
port='8086'
server='QA Author 1'
installpackage
port='8088'
server='QA Author 2'
installpackage
port='8089'
server='QA Publish 1'
installpackage
port='8091'
server='QA Publish 2'
installpackage
echo -e "Installation to QA complete!\n"
port='8098'
server='QA Author 1'
installpackage
port='8100'
server='QA Author 2'
installpackage
port='8101'
server='QA Publish 1'
installpackage
port='8103'
server='QA Publish 2'
installpackage
echo -e "Installation to QA complete!\n"