forked from StefanScherer/basebox-slave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.sh
executable file
·40 lines (40 loc) · 1.92 KB
/
bootstrap.sh
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
#!/bin/bash
if [ ! -d resources/ ]; then
mkdir -p resources
fi
if [ ! -f resources/Vagrantfile-global ]; then
if [ -f /vagrant/resources/basebox-slave/Vagrantfile-global ]; then
echo "Deploying Vagrantfile-global from Host to vApp sync folder"
cp /vagrant/resources/basebox-slave/Vagrantfile-global resources/Vagrantfile-global
fi
fi
if [ ! -f resources/test-box-vcloud-credentials.bat ]; then
if [ -f /vagrant/resources/basebox-slave/test-box-vcloud-credentials.bat ]; then
echo "Deploying test-box-vcloud-credentials.bat from Host to vApp sync folder"
cp /vagrant/resources/basebox-slave/test-box-vcloud-credentials.bat resources/test-box-vcloud-credentials.bat
fi
fi
if [ ! -f resources/upload-vcloud-credentials.bat ]; then
if [ -f /vagrant/resources/basebox-slave/upload-vcloud-credentials.bat ]; then
echo "Deploying upload-vcloud-credentials.bat from Host to vApp sync folder"
cp /vagrant/resources/basebox-slave/upload-vcloud-credentials.bat resources/upload-vcloud-credentials.bat
fi
fi
if [ ! -f resources/hosts ]; then
if [ -f /vagrant/resources/basebox-slave/hosts ]; then
echo "Deploying additional hosts entries"
cp /vagrant/resources/basebox-slave/hosts resources/hosts
fi
fi
if [ ! -f resources/license.lic ]; then
if [ -f /vagrant/resources/basebox-slave/license.lic ]; then
echo "Deploying Vagrant VMware Workstation license.lic"
cp /vagrant/resources/basebox-slave/license.lic resources/license.lic
fi
fi
if [ ! -f resources/jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml ]; then
if [ -f /vagrant/resources/basebox-slave/jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml ]; then
echo "Deploying Publish Over SSH Configuration jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml"
cp /vagrant/resources/basebox-slave/jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml resources/jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin.xml
fi
fi