File: postinst

package info (click to toggle)
couriergrey 0.3.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 3,016 kB
  • sloc: sh: 11,994; ansic: 10,591; cpp: 790; makefile: 496; yacc: 289; sed: 16
file content (17 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

if [ -d /var/cache/couriergrey ]; 
then
  chown daemon:daemon /var/cache/couriergrey
fi

if [ -L /etc/courier/filters/active/couriergrey ];
then
  echo "Restarting couriergrey"
  filterctl stop couriergrey
  filterctl start couriergrey
fi

##DEBHELPER##