blob: 8dad89397cb941f473a2c986d6d73e3bbebf846a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#/bin/sh
echo "Installing pre-build repo"
if [ ! -d /opt/opnfv/nailgun ]; then
echo "Error - found no repo!"
exit 1
fi
mkdir -p /var/www/nailgun
mv /opt/opnfv/nailgun/* /var/www/nailgun
if [ $? -ne 0 ]; then
echo "Error moving repos to their correct location!"
exit 1
fi
rmdir /opt/opnfv/nailgun
if [ $? -ne 0 ]; then
echo "Error removing /opt/opnfv/nailgun directory!"
exit 1
fi
mv /opt/opnfv/fuel_bootstrap_cli.yaml /etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml
if [ $? -ne 0 ]; then
echo "Error moving bootstrap image configuration!"
exit 1
fi
echo "Done installing pre-build repo"
|