I could create a new package with the help of
http://doc.otrs.org/developer/3.1/en/ht ... dp41509648.
But i would like to take a backup of existing file (say Test.pm) and would overwrite with my new/modified file.
And while uninstalling i would like to revert to the saved/old file.
Thanks
Crons
Creation of new Package .opm file
Moderator: crythias
-
- Znuny newbie
- Posts: 58
- Joined: 17 Aug 2012, 06:11
- Znuny Version: 3.3.x
- Real Name: Cornelius Jackson
Creation of new Package .opm file
OTRS 3.3.x, Ubuntu, MySql 5.5
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Creation of new Package .opm file
The package manager does this already for framework files. If you want to overwrite files that were shipped with add-ons, you have to program it yourself. You have to add a CodeInstall and CodeUninstall section in your .sopm (like in http://cvs.otrs.org/viewvc.cgi/ITSMChan ... .4&view=co) and create the packagesetup module (like http://cvs.otrs.org/viewvc.cgi/ITSMChan ... 76&view=co)
But keep in mind that you can have sideeffects with the add on if you reinstall/upgrade the addon. So it is recommended to *NOT* overwrite addon files.
But keep in mind that you can have sideeffects with the add on if you reinstall/upgrade the addon. So it is recommended to *NOT* overwrite addon files.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de