Satisfy "set -u" in root password injection
Change-Id: I0edda8e18aae5d7a34266d9208e5872bb999a071
This commit is contained in:
parent
e8c2c18f0a
commit
ad4e29023d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue