Skip to content

Commit

Permalink
scripts/motdgen: Adjust LTS motd information
Browse files Browse the repository at this point in the history
Links to documentation are added and the information about available
channel identifiers updated.
  • Loading branch information
pothos committed Nov 23, 2020
1 parent 5b0fdd5 commit 2a3af8d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/motdgen
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ 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://support.kinvolk.io/a/solutions/articles/44002096730" >> /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
# Remove the below?
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 2a3af8d

Please sign in to comment.