File: dovecot-common.preinst

package info (click to toggle)
dovecot 1.0.rc15-2etch5
  • links: PTS
  • area: main
  • in suites: etch
  • size: 8,808 kB
  • ctags: 9,428
  • sloc: ansic: 94,231; sh: 9,563; makefile: 1,320; yacc: 948; lex: 253
file content (24 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
set -e

if [ ! -e /etc/dovecot ];
then
  mkdir /etc/dovecot
fi

for i in dovecot.conf dovecot-ldap.conf dovecot-mysql.conf dovecot-pgsql.conf;
do
  if [ -f /etc/$i ];
  then
    mv /etc/$i /etc/dovecot/$i
    for j in dpkg-dist dpkg-new dpkg-old bak;
    do
      if [ -f /etc/$i.$j ];
      then
        mv /etc/$i.$j /etc/dovecot/$i.$j
      fi
    done
  fi
done

#DEBHELPER#