Compare commits

...

2 Commits

Author SHA1 Message Date
Jérémy Dubois 119118ad06 Update CHANGELOG
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details
2021-02-15 18:28:46 +01:00
Jérémy Dubois b3496692b2 Fix motd-carp-state.sh
Update the OpenBSD release in our customized motd
2021-02-15 18:25:52 +01:00
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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