|
From: Jamie C. <jca...@we...> - 2006-05-18 16:49:12
|
On 18/May/2006 09:18 Johnny Lam wrote .. > I am packaging up Webmin for pkgsrc (http://www.pkgsrc.org/). > Unfortunately, this means that I can't use the Webmin module > install/deinstall scripts for managing modules because being in pkgsrc > involves creating a separately installable binary package for each > Webmin module. I would still like to find some way to invoke the > &module_uninstall functions from a module's uninstall.pl script as part > of the binary package's "uninstall" action because &module_uninstall > often does useful things like removing obsolete cron jobs. What is the > right way to invoke this function from outside of miniserv.pl? Is this > even possible? Hi Johnny, Unfortunately, there is no way to run uninstall scripts on a per-module basis easily. You can run post-install scripts with a command like : WEBMIN_CONFIG=/etc/webmin WEBMIN_VAR=/var/webmin /path/to/webmin/run-postinstall.sh $modulename But there is no (yet) a similar way of running just one module's uninstall function. - Jamie |