Remove workaround about location of ironic-callback

Entry point "bareon-ironic-callback" is managed by python's setuptools.
So it's location is predictable. So we can/should remove existing
workarounds.

Change-Id: I6683f1abbab63553646be53f750a0281b5098391
This commit is contained in:
Dmitry Bogun 2017-02-22 18:28:17 +02:00
parent f927912e92
commit 097ac50f7a
2 changed files with 0 additions and 8 deletions

View File

@ -29,10 +29,6 @@ else
rpm -qi bareon >> $RELEASE_FILE
fi
if [ ! -f /usr/bin/ironic_callback ]; then
ln -s /usr/local/bin/ironic_callback /usr/bin/ironic_callback
fi
# TODO(lobur): generate this key and publish together with image
install -D -g root -o root -m 0600 ${SCRIPTDIR}/files.ironic/root/.ssh/authorized_keys /root/.ssh/authorized_keys
chmod 0700 /root/.ssh/

View File

@ -21,10 +21,6 @@ whl_name=$(ls -1rv dist/bareon*.whl 2>/dev/null | head -1)
pip install $whl_name
cd /
if [ ! -f /usr/bin/ironic_callback ]; then
ln -s /usr/local/bin/ironic_callback /usr/bin/ironic_callback
fi
echo $'md-mod' >> /etc/modules
install -D -g root -o root -m 0600 ${SCRIPTDIR}/files.ironic/root/.ssh/authorized_keys /root/.ssh/authorized_keys