annotate src/mlmmj-make-ml.sh.in @ 748:dfc9ab125fd4

Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
author Chris Webb
date Sun, 03 Oct 2010 21:40:42 +1100
parents fd821d26f56b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
1 #!/bin/sh
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
2 #
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
3 # mlmmj-make-ml.sh - henne@hennevogel.de
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
4 #
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
5
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
6 VERSION="0.1"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
7 DEFAULTDIR="/var/spool/mlmmj"
518
f745db86c61c free() -> myfree()
mmj
parents: 445
diff changeset
8 ALIASFILE=/etc/aliases
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
9
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
10 USAGE="mlmmj-make-ml "$VERSION"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
11 "$0" [OPTIONS]
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
12
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
13 -h display this help text
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
14 -L the name of the mailinglist
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
15 -s your spool directory if not "$DEFAULTDIR"
518
f745db86c61c free() -> myfree()
mmj
parents: 445
diff changeset
16 -a create the needed entrys in your $ALIASFILE file
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
17 -z nuffn for now
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
18 -c chown the spool dir"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
19
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
20 while getopts ":hL:s:azc:" Option
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
21 do
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
22 case "$Option" in
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
23 h )
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
24 echo -e "$USAGE"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
25 exit 0
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
26 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
27 z )
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
28 echo -n "nothing"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
29 exit 0
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
30 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
31 L )
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
32 LISTNAME="$OPTARG"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
33 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
34 s )
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
35 SPOOLDIR="$OPTARG"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
36 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
37 a )
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
38 A_CREATE="YES"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
39 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
40 c )
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
41 DO_CHOWN=1
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
42 CHOWN="$OPTARG"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
43 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
44 * )
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
45 echo -e "$0: invalid option\nTry $0 -h for more information."
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
46 exit 1
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
47 esac
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
48 done
606
353118fefd6a Fixed a Bourne Shell issue in mlmmj-make-ml.sh (Magnus Naeslund)
mortenp
parents: 518
diff changeset
49 SHIFTVAL=$((OPTIND-1))
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
50 shift $SHIFTVAL
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
51
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
52 if [ -z "$SPOOLDIR" ]; then
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
53 SPOOLDIR="$DEFAULTDIR"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
54 fi
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
55
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
56 echo "Creating Directorys below $SPOOLDIR. Use '-s spooldir' to change"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
57
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
58 if [ -z "$LISTNAME" ]; then
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
59 echo -n "What should the name of the Mailinglist be? [mlmmj-test] : "
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
60 read LISTNAME
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
61 if [ -z "$LISTNAME" ]; then
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
62 LISTNAME="mlmmj-test"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
63 fi
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
64 fi
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
65
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
66 LISTDIR="$SPOOLDIR/$LISTNAME"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
67
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
68 mkdir -p $LISTDIR
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
69
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
70 for DIR in incoming queue queue/discarded archive text subconf unsubconf \
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
71 bounce control moderation subscribers.d digesters.d requeue \
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
72 nomailsubs.d
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
73 do
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
74 mkdir "$LISTDIR"/"$DIR"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
75 done
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
76
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
77 test -f "$LISTDIR"/index || touch "$LISTDIR"/index
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
78
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
79 echo -n "The Domain for the List? [] : "
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
80 read FQDN
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
81 if [ -z "$FQDN" ]; then
445
e4494aa175f5 Bugfixes and 1.2.2
mmj
parents: 443
diff changeset
82 FQDN=`domainname -f`
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
83 fi
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
84
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
85 echo -n "The emailaddress of the list owner? [postmaster] : "
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
86 read OWNER
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
87 if [ -z "$OWNER" ]; then
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
88 OWNER="postmaster"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
89 fi
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
90 echo "$OWNER" > "$LISTDIR"/"control/owner"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
91
645
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
92 (
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
93 cd "@textlibdir@"
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
94 echo
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
95 echo "For the list texts you can choose between the following languages or"
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
96 echo "give a absolute path to a directory containing the texts."
445
e4494aa175f5 Bugfixes and 1.2.2
mmj
parents: 443
diff changeset
97 echo
645
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
98 echo "Available languages:"
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
99 ls
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
100
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
101 TEXTPATHDEF=en
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
102 echo -n "The path to texts for the list? [$TEXTPATHDEF] : "
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
103 read TEXTPATHIN
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
104 if [ -z "$TEXTPATHIN" ] ; then
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
105 TEXTPATH="$TEXTPATHDEF"
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
106 else
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
107 TEXTPATH="$TEXTPATHIN"
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
108 fi
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
109 if [ ! -d "$TEXTPATH" ]; then
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
110 echo
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
111 echo "**NOTE** Could not copy the texts for the list"
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
112 echo "Please manually copy the files from the listtexts/ directory"
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
113 echo "in the source distribution of mlmmj."
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
114 sleep 2
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
115 else
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
116 cp "$TEXTPATH"/* "$LISTDIR"/"text"
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
117 fi
fd821d26f56b Moved English listtexts and install all languages (Ansgar Burchardt)
mortenp
parents: 606
diff changeset
118 )
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
119
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
120 LISTADDRESS="$LISTNAME@$FQDN"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
121 echo "$LISTADDRESS" > "$LISTDIR"/control/"listaddress"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
122
748
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 645
diff changeset
123 MLMMJRECEIVE=`which mlmmj-receive 2>/dev/null`
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 645
diff changeset
124 if [ -z "$MLMMJRECEIVE" ]; then
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 645
diff changeset
125 MLMMJRECEIVE="/path/to/mlmmj-receive"
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
126 fi
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
127
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
128 MLMMJMAINTD=`which mlmmj-maintd 2>/dev/null`
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
129 if [ -z "$MLMMJMAINTD" ]; then
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
130 MLMMJMAINTD="/path/to/mlmmj-maintd"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
131 fi
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
132
748
dfc9ab125fd4 Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
Chris Webb
parents: 645
diff changeset
133 ALIAS="$LISTNAME: \"|$MLMMJRECEIVE -L $SPOOLDIR/$LISTNAME/\""
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
134 CRONENTRY="0 */2 * * * \"$MLMMJMAINTD -F -L $SPOOLDIR/$LISTNAME/\""
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
135
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
136 if [ -n "$A_CREATE" ]; then
518
f745db86c61c free() -> myfree()
mmj
parents: 445
diff changeset
137 echo "I want to add the following to your $ALIASFILE file:"
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
138 echo "$ALIAS"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
139
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
140 echo -n "is this ok? [y/N] : "
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
141 read OKIDOKI
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
142 case $OKIDOKI in
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
143 y|Y)
518
f745db86c61c free() -> myfree()
mmj
parents: 445
diff changeset
144 echo "$ALIAS" >> $ALIASFILE
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
145 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
146 n|N)
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
147 exit 0
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
148 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
149 *)
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
150 echo "Options was: y, Y, n or N"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
151 esac
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
152 else
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
153 echo
518
f745db86c61c free() -> myfree()
mmj
parents: 445
diff changeset
154 echo "Don't forget to add this to $ALIASFILE:"
443
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
155 echo "$ALIAS"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
156 fi
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
157
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
158 if [ "$DO_CHOWN" ] ; then
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
159 echo
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
160 echo -n "chown -R $CHOWN $SPOOLDIR/$LISTNAME? [y/n]: "
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
161 read OKIDOKI
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
162 case $OKIDOKI in
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
163 y|Y)
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
164 chown -R $CHOWN $SPOOLDIR/$LISTNAME
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
165 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
166 n|N)
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
167 exit 0
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
168 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
169 *)
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
170 echo "option is: y, Y, n, N"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
171 ;;
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
172 esac
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
173 fi
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
174
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
175 echo
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
176 echo "If you're not starting mlmmj-maintd in daemon mode,"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
177 echo "don't forget to add this to your crontab:"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
178 echo "$CRONENTRY"
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
179
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
180 echo
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
181 echo " ** FINAL NOTES **
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
182 1) The mailinglist directory have to be owned by the user running the
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
183 mailserver (i.e. starting the binaries to work the list)
0c96f9bb3162 mlmmj-make-ml.sh will now know where the listtexts where installed
mmj
parents:
diff changeset
184 2) Run newaliases"