procedure for making updates OTRS

Moderator: crythias

Locked
marouitaa1988
Znuny newbie
Posts: 31
Joined: 28 Feb 2011, 13:11
Znuny Version: 3.0.5

procedure for making updates OTRS

Post by marouitaa1988 »

Hi all

Plz i want a procedure that allows for updating of OTRS.
iztok
Znuny newbie
Posts: 83
Joined: 06 Jan 2011, 14:28
Znuny Version: 3

Re: procedure for making updates OTRS

Post by iztok »

Get the latest otrs .tar.gz package, when extracted, inside otrs-3.0.6/ you'll find a file named UPGRADING. Follow those instructions and you should be ok :-) Done this procedure myself few times, never failed.
marouitaa1988
Znuny newbie
Posts: 31
Joined: 28 Feb 2011, 13:11
Znuny Version: 3.0.5

Re: procedure for making updates OTRS

Post by marouitaa1988 »

actually what I want to do is write a procedure that will allow me to make a simple update keeping the BD
iztok
Znuny newbie
Posts: 83
Joined: 06 Jan 2011, 14:28
Znuny Version: 3

Re: procedure for making updates OTRS

Post by iztok »

Something like this? Adjust the stuff to your needs. I always follow this procedure. Did 2 upgrades already. Use at your own risk ofcourse :-)

Run this script from /opt/, have the otrs-3.0.6.tar.gz placed in there.

Code: Select all

#!/bin/sh
service cron stop
service postfix stop
service apache2 stop
cp -R /opt/otrs /opt/otrs.backup
mysqldump -h localhost -u <username> -p<password> otrs | bzip2 -c > otrs.sql.bz2
tar -xzf otrs-3.0.6.tar.gz
cp -R otrs-3.0.6/* /opt/otrs
cp /opt/otrs.backup/Kernel/Config.pm /opt/otrs/Kernel/Config.pm 
cp /opt/otrs.backup/Kernel/Config/ZZZAuto.pm /opt/otrs/Kernel/Config/ZZZAuto.pm 
cp /opt/otrs.backup/Kernel/Config/GenericAgent.pm /opt/otrs/Kernel/Config/GenericAgent.pm
/opt/otrs/bin/otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=www-data --web-user=www-data --web-group=www-data /opt/otrs
/opt/otrs/bin/otrs.RebuildConfig.pl
/opt/otrs/bin/otrs.DeleteCache.pl
service cron start
service postfix start
service apache2 start
marouitaa1988
Znuny newbie
Posts: 31
Joined: 28 Feb 2011, 13:11
Znuny Version: 3.0.5

Re: procedure for making updates OTRS

Post by marouitaa1988 »

Thank you for your help I'll try with this script 8)
in fact I have not POSTFIX I work with Sendmail and i have UBUNTU.
Locked