mirror of
https://github.com/rgl/nexus-vagrant.git
synced 2026-09-30 00:31:11 +02:00
18 lines
490 B
Bash
18 lines
490 B
Bash
#!/bin/bash
|
|
set -euxo pipefail
|
|
|
|
nexus_domain=$(hostname --fqdn)
|
|
|
|
. /vagrant/provision/nexus-groovy.sh
|
|
|
|
# NB this is the default nexus password, which will be changed to
|
|
# 'password' by the provision.groovy script that we run bellow.
|
|
admin_password='admin123'
|
|
|
|
# list existing scripts.
|
|
#http -a "$admin_username:$admin_password" https://$nexus_domain/service/rest/v1/script | jq .
|
|
|
|
# run the provision script.
|
|
response=$(nexus-groovy provision)
|
|
echo "$response" | jq '.result | fromjson'
|