Hi all
Plz i want a procedure that allows for updating of OTRS.
procedure for making updates OTRS
Moderator: crythias
-
- Znuny newbie
- Posts: 31
- Joined: 28 Feb 2011, 13:11
- Znuny Version: 3.0.5
Re: procedure for making updates OTRS
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.

-
- Znuny newbie
- Posts: 31
- Joined: 28 Feb 2011, 13:11
- Znuny Version: 3.0.5
Re: procedure for making updates OTRS
actually what I want to do is write a procedure that will allow me to make a simple update keeping the BD
Re: procedure for making updates OTRS
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.

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
-
- Znuny newbie
- Posts: 31
- Joined: 28 Feb 2011, 13:11
- Znuny Version: 3.0.5
Re: procedure for making updates OTRS
Thank you for your help I'll try with this script 
in fact I have not POSTFIX I work with Sendmail and i have UBUNTU.

in fact I have not POSTFIX I work with Sendmail and i have UBUNTU.