summaryrefslogtreecommitdiff
path: root/salt/openbook/customer_web_ui/files/installdeps.sh
blob: 79027be936e458540896b1cb92764fcd3c163f6b (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"] }}\.[\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