Satisfy "set -u" in root password injection

Change-Id: I0edda8e18aae5d7a34266d9208e5872bb999a071
This commit is contained in:
Dmitry Bogun 2017-03-02 13:16:02 +02:00
parent e8c2c18f0a
commit ad4e29023d
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ install -D -g root -o root -m 0644 ${SCRIPTDIR}/files.ironic/usr/lib/systemd/sys
install -D -g root -o root -m 0644 ${SCRIPTDIR}/files.ironic/etc/bareon/bareon.conf /etc/bareon/bareon.conf
install -d -g root -o root -m 0700 /root/.ssh
if [ -n "$DIB_BAREON_ROOT_PASSWORD" ]; then
if [ -n "${DIB_BAREON_ROOT_PASSWORD:-}" ]; then
echo "root:$DIB_BAREON_ROOT_PASSWORD" | chpasswd
fi
if [ -f /tmp/bareon-build/inject-ssh-key.pub ]; then