1 |
jpp |
1.1 |
diff -Nur --no-dereference smeserver-mailman-1.5.0.old/root/usr/lib/mailman/bin/post-install smeserver-mailman-1.5.0/root/usr/lib/mailman/bin/post-install |
2 |
|
|
--- smeserver-mailman-1.5.0.old/root/usr/lib/mailman/bin/post-install 2014-06-19 19:38:55.000000000 -0400 |
3 |
|
|
+++ smeserver-mailman-1.5.0/root/usr/lib/mailman/bin/post-install 2022-04-12 00:51:10.928000000 -0400 |
4 |
|
|
@@ -6,12 +6,11 @@ |
5 |
|
|
DOMAIN=`/sbin/e-smith/config get DomainName` |
6 |
|
|
if [ ! -d /var/lib/mailman/lists/mailman ]; then |
7 |
|
|
MATRIX="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" |
8 |
|
|
- LENGTH="8" |
9 |
|
|
+ LENGTH="18" |
10 |
|
|
while [ "${n:=1}" -le "$LENGTH" ]; do |
11 |
|
|
PASS="$PASS${MATRIX:$(($RANDOM%${#MATRIX})):1}" |
12 |
|
|
let n+=1 |
13 |
|
|
done |
14 |
|
|
- echo "* New site password: $PASS" |
15 |
|
|
/sbin/e-smith/config setprop mailman SitePass $PASS |
16 |
|
|
|
17 |
|
|
/usr/lib/mailman/bin/mmsitepass "$PASS" > /dev/null 2>&1 || : |