HEX
Server: Apache/2.4.54 (Debian)
System: Linux a5825d2beacc 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64
User: root (0)
PHP: 8.1.14
Disabled: NONE
Upload Files
File: /var/lib/dpkg/info/sendmail-bin.preinst
#!/bin/sh
set -e;

# do we have debconf?
if [ -f /usr/share/debconf/confmodule ]; then
	DEBCONF=true;
	. /usr/share/debconf/confmodule;
else
	DEBCONF='';
	fi;

if [ "$1" = "upgrade" ]; then
		# Prevent cronjob from running during upgrade...
		if [ -f /etc/cron.d/sendmail ]; then
			echo "#preinst" > /etc/cron.d/sendmail;
			fi;

	if dpkg --compare-versions "$2" lt-nl "8.15.2-19" ; then
		# stop sendmail before binaries get moved from /usr/lib/sm.bin/ to /usr/libexec/sendmail/
		invoke-rc.d sendmail stop
	fi
fi