Skip to content

Commit

Permalink
Merge pull request #32 from kinvolk/kai/lts-motd
Browse files Browse the repository at this point in the history
scripts/motdgen: Adjust LTS motd information
  • Loading branch information
pothos authored Nov 27, 2020
2 parents 5b0fdd5 + 1c24ceb commit c65fe54
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/motdgen
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ if [[ -d "/etc/motd.d" ]]; then
cat /etc/motd.d/*.conf 2>/dev/null >> /run/flatcar/motd || true
fi

if [[ "${GROUP}" =~ "lts" ]]; then
echo "FCL LTS documentation: https://kinvolk.io/fcl-lts-docs" >> /run/flatcar/motd
fi
if [[ "${GROUP}" =~ "lts" ]] && { [[ "${DOWNLOAD_USER}" = "" ]] || [[ "${DOWNLOAD_PASSWORD}" = "" ]] ; }; then
echo "/etc/flatcar/update.conf: DOWNLOAD_USER and DOWNLOAD_PASSWORD are missing to download LTS updates." >> /run/flatcar/motd
echo "Documentation for update.conf: https://kinvolk.io/docs/flatcar-container-linux/latest/clusters/management/update-conf" >> /run/flatcar/motd
fi
if [[ "${GROUP}" = "lts" ]] && [[ "${SERVER}" = "https://public.update.flatcar-linux.net/v1/update/" ]]; then
echo -n "/etc/flatcar/update.conf: GROUP=lts on the public update server is a placeholder and can't be used directly, " >> /run/flatcar/motd
echo "use GROUP=lts-STREAM or your own update server with a managed 'lts' group." >> /run/flatcar/motd
echo -n "/etc/flatcar/update.conf: GROUP=lts on the public update server may switch to a newer LTS stream, " >> /run/flatcar/motd
echo "use GROUP=lts-STREAM or your own update server with a managed 'lts' group to stick to one stream." >> /run/flatcar/motd
fi

0 comments on commit c65fe54

Please sign in to comment.