2 Commits

Author SHA1 Message Date
Jérémy Dubois 119118ad06 Update CHANGELOG 2 months ago
Jérémy Dubois b3496692b2 Fix motd-carp-state.sh 2 months ago
  1. 1
      CHANGELOG
  2. 2
      roles/post-install/files/motd-carp-state.sh

1
CHANGELOG

@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix the check_mem command in the NRPE role, precising the percentage sign for it not to check the memory in MB.
- Fix the check_mem script in the NRPE role, adding cached RAM as free RAM
- Fix motd-carp-state.sh by updating the OpenBSD release in our customized motd after an upgrade
### Changed

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