archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / kubernetes / trunk / kubelet.install
blob7b0a14d1fa8bad50535bdc38e58ead780813d77f
1 #!/usr/bin/env bash
3 post_install() {
4 if ! grep "br_netfilter" /proc/modules; then
5 echo "Load the br_netfilter kernel module or reboot: modprobe br_netfilter."
6 fi
7 if [[ $(swapon --noheadings | wc -l) -ne 0 ]]; then
8 echo "WARNING: Disable swap before using kubelet.service."
9 fi
12 post_upgrade() {
13 local _changelog_121="https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.21.md#no-really-you-must-read-this-before-you-upgrade"
14 if [[ "$(vercmp "$2" "1.21.0-1")" -lt 0 ]]; then
15 printf "WARNING: Read important changelog notice:\n"
16 printf " %s\n" "${_changelog_121}"