View Single Post
Old 10-03-2003, 02:29 PM  
ADDiCT
Senior Member
 
Join Date: Aug 2003
Posts: 517
Default upgrading to 5.1.* : what to change in ioftpd.ini

from 4.* to 5.*   (keeping users & groups)

U will need to reinstall all scripts, since most of them use different techniques (like shmem) or some commands have changed. U can however keep your users & groups, what is probably most important

1. Backup the 3 dirs \users\ and \groups\ and \etc\
2. Install new ioFTPD 5
3. Put the dirs \users\ and \groups\ and \etc\ back from your backup.
Make sure u keep the new \etc\Host.Rules file from ioFTPD 5
4. Go to http://www.ioftpd.com/passwdconv/
- paste your \etc\passwd file there to convert it, then rename it to \etc\UserIdTable
- paste your \etc\group file there to convert it, then rename it to \etc\GroupIdTable
5. config your new ioFTPD 5 (ioftpd.ini, host.rules, ...)

__________________________________________________

from 5.0.* to 5.1.*

This applies to sections [scripts] [events] [sheduler] [pre] [post] in ioFTPD.ini
(basically everywhere u run an external script)


old ioftpd 5.0.* (and 4.*)

[Events]
OnUploadComplete = ..\scripts\ioZS\ioZS.exe Upload
OnUploadComplete = ..\scripts\nfourl.itcl
[Post]
dele = ..\scripts\ioZS\ioZS.exe Delete
[Scripts]
traffic = ..\scripts\ioGroups.exe sitestats
myinfo = %..\scripts\ioGroups.exe userinfo %[$user]


new ioftpd 5.1.*

[Events]
OnUploadComplete = EXEC ..\scripts\ioZS\ioZS.exe Upload
OnUploadComplete = TCL ..\scripts\nfourl.itcl
[Post]
dele = EXEC ..\scripts\ioZS\ioZS.exe Delete
[Scripts]
traffic = EXEC ..\scripts\ioGroups.exe sitestats
myinfo = %EXEC ..\scripts\ioGroups.exe userinfo %[$user]

Basically, u put EXEC infront of all executable scripts (exe bat ...), and TCL infront of itcl scripts. Note that % goes infront of the EXEC/TCL. Message files and aliasses remain unchanged:
HELP = !..\help\help.msg
RHS = @config rehash

Also in message files, using the %[execute(..)] cookie:
%[execute(EXEC D:\ioftpd\scripts\blabla.exe Arguments)]
ADDiCT is offline   Reply With Quote