Re: [webmin-devel] Updating Modules and Themes

"Jamie Cameron" <[email protected]> Thu, 19 Nov 2009 21:45:46 -0800 (PST)
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
On 19/Nov/2009 21:27 David Drayton <[email protected]> wrote ..
> Thanks for all your help so far guys.
> 
> I've got another one for you: What's the best way to update my own modules and
> themes from a local/uploaded file? 
> 
> Update Modules in Upgrade Webmin doesn't appear to allow for updates from a local
> or uploaded file. Not only that but I'm not sure if this facilitates third party
> modules or only built in webmin modules.
> 
> Webmin Modules and Webmin Themes seem to only allow Install and Delete. I'm not
> sure if Install will do the trick of updating the files and removing any old ones.

Yes, it will .. if you just want to upgrade a module, the Install function will do
it for you.

> And I'm wary of doing a Delete and then Install because I'm not sure what configurations
> and settings it will wipe out (as I just want to upgrade, I want to keep all of
> them).

Yes, don't do a delete - that will cause any module-specific settings to be lost.

> I know that when developing I can just replace the code that's already there, but
> I'm changing stuff 'in production' and want to make sure that any automatic actions
> that are needed are carried out (ie. copying config files).

Yes, an install will replace the module code, copy any new default config directives,
and run any postinstall script.

 - Jamie

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel