Browse Source

Fix motd-carp-state.sh

Update the OpenBSD release in our customized motd
dev
Jérémy Dubois 2 months ago
parent
commit
b3496692b2
  1. 2
      roles/post-install/files/motd-carp-state.sh

2
roles/post-install/files/motd-carp-state.sh

@ -5,6 +5,8 @@ if [ ! -f /etc/motd-original ]; then
fi
if [ ! -f /tmp/carp.state ]; then
# Raplace OpenBSD version in motd after each boot for it to be up to date after an upgrade
sed -i "1 s/^.*$/$(head -1 \/var\/run\/dmesg.boot)/" /etc/motd-original
echo "unknown" > /tmp/carp.state
fi

Loading…
Cancel
Save