]>
git.proxmox.com Git - pve-cluster.git/blob - debian/pve-cluster.preinst
3 # abort if any command returns an error value
6 # handle incorrectly installed sysctl.d snippet (pve-cluster 5.0-16 and -17)
7 # TODO: remove in PVE 6.0
8 function sysctlcleanup
{
10 # no old version, nothing to do
13 if dpkg
--compare-versions "$1" '<=' '5.0-17'; then
14 # remove directory if it exists
15 # otherwise we can't install our actual pve.conf file
16 if test -d '/etc/sysctl.d/pve.conf'; then
17 rm -rf '/etc/sysctl.d/pve.conf'