summaryrefslogtreecommitdiff
path: root/salt/openbook/customer_web_ui/files/installdeps.sh
blob: 56e1b8e4b448fa70eb77a2b4e33c55d0e66c27b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

current_jar=($(curl -s \
     -k \
     -u '{{ pillar["jars"]["username"] }}:{{ pillar["jars"]["password"] }}' \
     {{ pillar["jars"]["url"] }} \
    | grep -o -P '{{ pillar["customer_web_ui"]["jar_name"] }}-{{ pillar["customer_web_ui"]["branch"] }}\.[\d]+\.[\d]+\.[\d]+\.jar'))

curl -k \
     -u '{{ pillar["jars"]["username"] }}:{{ pillar["jars"]["password"] }}' \
     -o ${current_jar[0]} \
     {{ pillar["jars"]["url"] }}/${current_jar[0]}

exit 0