mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-03 03:30:19 +00:00
30 lines
693 B
Plaintext
30 lines
693 B
Plaintext
|
#!/bin/sh
|
||
|
# see: dh_installdeb(1)
|
||
|
|
||
|
set -o errexit
|
||
|
set -o nounset
|
||
|
|
||
|
case "$1" in
|
||
|
configure)
|
||
|
# because kubeadm package adds kubelet drop-ins, we must daemon-reload
|
||
|
# and restart kubelet now. restarting kubelet is ok because kubelet
|
||
|
# postinst configure step auto-starts it.
|
||
|
systemctl daemon-reload 2>/dev/null || true
|
||
|
systemctl restart kubelet 2>/dev/null || true
|
||
|
;;
|
||
|
|
||
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "postinst called with unknown argument \`$1'" >&2
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
# dh_installdeb will replace this with shell code automatically
|
||
|
# generated by other debhelper scripts.
|
||
|
|
||
|
#DEBHELPER#
|
||
|
|
||
|
exit 0
|