blob: aa23064790d3a494908292b0e04fdb89252c3336 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
set -e
set -x
# answers_url=http://${PACKER_HTTP_IP}:${PACKER_HTTP_PORT}/answers.expect
# install_url=http://${PACKER_HTTP_IP}:${PACKER_HTTP_PORT}/install-image.vsh
install_url=http://${PACKER_HTTP_IP}:${PACKER_HTTP_PORT}/install-image.py
# touch /root/answers.expect
# chmod 0600 /root/answers.expect
# wget $answers_url -O /root/answers.expect
touch /root/install-image.py
chmod 0700 /root/install-image.py
wget $install_url -O /root/install-image.py
python3 /root/install-image.py
|