File: sendmail-base.preinst.in

package info (click to toggle)
sendmail 8.18.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,268 kB
  • sloc: ansic: 106,906; perl: 7,504; sh: 5,488; makefile: 888
file content (16 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e;

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

		# Move files to new home
		if [ -d @sysconfdir@/mail/ssl ] && [ ! -e @sysconfdir@/mail/tls ]; then
			mv -f @sysconfdir@/mail/ssl @sysconfdir@/mail/tls;
			fi;
fi

#DEBHELPER#