Custom script removed with webmin upgrade?

3 posts / 0 new
Last post
#1 Fri, 04/17/2009 - 03:10
expro

Custom script removed with webmin upgrade?

Hi,

I worte some script which did some post configuration upon new virtual server creation. The script was stored in "/usr/local/webmin/virtual-server/" (FreeBSD). Today I created a new virtual server and the error massege was displayed, that the custom script couldn't be found. And indeed, it wasn't there anymore. The only thing, wich comes to my mind is that maybe during the webmin upgrade "virtual-server/" directory was removed/overwritten by the Virtualmin upgrade system. Does virtualmin/webmin upgrade removes/overwrites this directory?

Regards, Filip Palian.

Tue, 04/21/2009 - 03:30
sgrayban

I think it does. I always put any custom scripts in its own directory under /root to make sure nothing gets deleted just for this reason.

Tue, 04/21/2009 - 09:32
Joe
Joe's picture

Depends on the package type and other factors.

But, you should never put things into existing module directories...because there are many circumstances where it would be deleted. If you need custom Webmin/Virtualmin or theme behavior you would create a new module (which is always safe during upgrades and such; assuming you follow normal upgrade procedures either letting Webmin perform the upgrade or using native package management tools on platforms that have reasonable native package management--FreeBSD is not one of those, but Webmin will upgrade itself and respect third party modules). If you're just talking about a command line script, you'd probably put it into /usr/local/bin or similar. Webmin assumes that all of the files in a module directory (like webmin/virtual-server) belong to the module.

--

Check out the forum guidelines!

Topic locked