Re: [Mailman-Users] changing datas in config.db

2002-04-13 Thread Jonas Meurer

On Fri, Apr 12, 2002 at 09:31:28AM -0700, Anna Fong wrote:
> Francois has a list called 'detente' and before I really looked closely 
> at the script I threw that in there. 
> 
> In Francois' case and mine, the script would work better if we removed 
> the `do' loop as we are only trying to update one list, not the entire 
> group of lists in ~/lists/ 
> 
> So the script should be modified to read: 

I only have chanded this line:
for list in `ls $newroot/lists`.
Now it updates every list, but this doesn't hurd.

Bye 
 Jonas

-- 
My operat~1 system unders~1 long filena~1 , does yours?


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py



Re: [Mailman-Users] changing datas in config.db

2002-04-12 Thread Anna Fong
Jonas,

Francois has a list called 'detente' and before I really looked closely at the script I threw that in there.

In Francois' case and mine, the script would work better if we removed the `do' loop as we are only trying to update one list, not the entire group of lists in ~/lists/

So the script should be modified to read:

---snip---


#!/bin/sh
newroot='/var/mailman'


list='detente'
python -i $newroot/bin/withlist -l $list <
m.private_archive_file_dir
m.private_archive_file_dir='$newroot/archives/private/$list.mbox'
m.public_archive_file_dir
m.public_archive_file_dir='$newroot/archives/public'
m.archive_directory
m.archive_directory='$newroot/archives/private/$list'
m.Save()
EOF


---snip---

On Thu, Apr 11, 2002 at 10:24:41AM -0700, Anna Fong wrote:
> #!/bin/sh 
> 
> newroot='/var/mailman' 
> 
> for list in `ls $newroot/lists/detente` 

What does this line do? I don't understand it, and also I have no
lists/detente.

Bye
Jonas



Anna Q. Fong, Webmaster	
California Data Exchange Center	



-- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py 

Re: [Mailman-Users] changing datas in config.db

2002-04-12 Thread FranH

Works fine (with many console messages :-).
Thanks a lot Anna.

But my problem steel there :-|

I don't see the list detente in the web listinfo uri :-|

François 


On Thu, 11 Apr 2002 10:24:41 -0700
Anna Fong <[EMAIL PROTECTED]> wrote:

> François,
> 
> 
> Try this from 
> 
> http://mail.python.org/pipermail/mailman-users/1999-August/002009.html
> 
> 
> 


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py



Re: [Mailman-Users] changing datas in config.db

2002-04-11 Thread Jonas Meurer

On Thu, Apr 11, 2002 at 10:24:41AM -0700, Anna Fong wrote:
> #!/bin/sh 
> 
> newroot='/var/mailman' 
> 
> for list in `ls $newroot/lists/detente` 

What does this line do? I don't understand it, and also I have no
lists/detente.

Bye
 Jonas

-- 
We'll try to make different mistakes this time
  -- Larry Wall


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py



Re: [Mailman-Users] changing datas in config.db

2002-04-11 Thread Anna Fong
François,

Try this from 
http://mail.python.org/pipermail/mailman-users/1999-August/002009.html


---snip---
#!/bin/sh

newroot='/var/mailman'

for list in `ls $newroot/lists/detente`
do
python -i $newroot/bin/withlist -l $list <
m.private_archive_file_dir
m.private_archive_file_dir='$newroot/archives/private/$list.mbox'
m.public_archive_file_dir
m.public_archive_file_dir='$newroot/archives/public'
m.archive_directory
m.archive_directory='$newroot/archives/private/$list'
m.Save()
EOF
done
---snip---


I have not tried this but it looks like it might solve my problem with config.db also.

Anna




At 12:00 PM 04/11/2002 -0400, you wrote: 
>>>>
Date: Thu, 11 Apr 2002 12:38:20 +0200 
From: François Chenais  
To: [EMAIL PROTECTED] 
Message-Id:  
Mime-Version: 1.0 
Content-Type: text/plain; charset=ISO-8859-1 
Content-Transfer-Encoding: 8bit 
Subject: [Mailman-Users] changing datas in config.db 
Sender: [EMAIL PROTECTED] 
Precedence: bulk 
List-Help:  
List-Post:  
List-Subscribe: , 


List-Id: Mailman mailing list management users  
List-Unsubscribe: , 


List-Archive:  

Hello, 

I would like to change datas in config.db file 

specialy transform 

'archive_directory': '/opt/mailman/archives/private/detente', 
'private_archive_file_dir': '/opt/mailman/archives/private/detente.mbox', 
'public_archive_file_dir': '/opt/mailman/archives/public', 

to 

'archive_directory': '/var/mailman/archives/private/detente', 
'private_archive_file_dir': '/var/mailman/archives/private/detente.mbox', 
'public_archive_file_dir': '/var/mailman/archives/public', 



In fact, I have transfered my list datas from a server to another. 
On the new one, the admin web interface /mailman/admin shows me 
my "detente" list but the 
- /mailman/listinfo doesn't work 
- /mailman/listinfo/detente works 



Perhaps it's because of the path in config.db. 
Any idea ? 

Thanks a lot. 

François 





Anna Q. Fong, Webmaster	
California Data Exchange Center	



-- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py 

[Mailman-Users] changing datas in config.db

2002-04-11 Thread François Chenais

Hello, 

I would like to change datas in config.db file

specialy transform

  'archive_directory': '/opt/mailman/archives/private/detente',
  'private_archive_file_dir': '/opt/mailman/archives/private/detente.mbox',
  'public_archive_file_dir': '/opt/mailman/archives/public',

to 

  'archive_directory': '/var/mailman/archives/private/detente',
  'private_archive_file_dir': '/var/mailman/archives/private/detente.mbox',
  'public_archive_file_dir': '/var/mailman/archives/public',



In fact, I have transfered my list datas from a server to another.
On the new one, the admin web interface  /mailman/admin shows me 
my  "detente" list but the 
- /mailman/listinfodoesn't work
- /mailman/listinfo/detenteworks


Perhaps it's because of the path in config.db.
Any idea ?

Thanks a lot.

François



-- 
Woody 3.0
Linux tanna 2.4.14 #3 SMP Thu Dec 6 14:04:03 CET 2001 i686 unknown



 





--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py