HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux 194-195-117-163.ip.linodeusercontent.com 5.15.0-119-generic #129-Ubuntu SMP Fri Aug 2 19:25:20 UTC 2024 x86_64
User: www-data (33)
PHP: 8.1.2-1ubuntu2.22
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