3 # Migrate script from pre courier-authlib versions of Courier.
5 # $Id: authmigrate.in,v 1.2 2005/02/13 11:26:19 mrsam Exp $
7 # Copyright 2004 Double Precision, Inc. See COPYING for
8 # distribution information.
11 exec_prefix=@exec_prefix@
20 for dir in /etc/courier \
21 /usr/lib/courier/etc \
22 /usr/lib/courier-imap/etc \
24 /usr/local/etc/courier \
25 /usr/local/courier/etc \
26 /usr/local/lib/courier/etc \
27 /usr/local/lib/courier-imap/etc \
28 /usr/local/share/sqwebmail \
29 /usr/local/etc/courier-imap
33 if test -r "$dir/$file"
35 echo "Obsolete: $dir/$file""(.dist)?"
42 if test -r "$dir/$file"
44 echo "Obsolete: $dir/$file""(.dist)?"
49 if test ! -r $dir/$file
54 if test -f "$dir/$file"
56 if test "$file" = "userdb"
60 if test "`sed -n 1p $dir/$file | sed -n '/^##VERSION/p'`" = ""
67 echo "$dir/$file => $dstfile"
68 cp -pr "$dir/$file" "$dstfile"
74 chk_file authdaemonrc @authdaemonrc@
75 chk_file authmysqlrc @authmysqlrc@
76 chk_file authpgsqlrc @authpgsqlrc@
77 chk_file authldaprc @authldaprc@
78 chk_file userdb @userdb@