Startseite‎ > ‎Linuix‎ > ‎OTRS‎ > ‎

Update von OTRS 3.3... zu 4.0....

Als erstes das Support-Modul zuerst deinstallieren!!!!!!

shell> /etc/init.d/cron stop
shell> /etc/init.d/postfix stop
shell> /etc/init.d/apache2 stop
/opt/otrs/bin/otrs.Scheduler.pl -a stop

root@DEISCITSTEST:/home/administrator# cp /opt/otrs/Kernel/Config.pm backup/
root@DEISCITSTEST:/home/administrator# cp /opt/otrs/Kernel/Config/GenericAgent.pm backup/
root@DEISCITSTEST:/home/administrator# cp /opt/otrs/Kernel/Config/Files/ZZZAuto.pm backup/
root@DEISCITSTEST:/home/administrator# cp /opt/otrs/var/log/TicketCounter.log backup/
root@DEISCITSTEST:/home/administrator# cp -r /opt/otrs/var/article backup/

cd /opt/
rsync -av otrs/* otrs_sicherung/
rm -r otrs/*

cd /home/administrator/
tar -xzf otrs-4.0.17.tar.gz
rsync -av otrs-4.0.17/* /opt/otrs/

root@DEISCITSTEST:/home/administrator/backup# rsync -av Config.pm /opt/otrs/Kernel/
root@DEISCITSTEST:/home/administrator/backup# rsync -av GenericAgent.pm /opt/otrs/Kernel/Config/
root@DEISCITSTEST:/home/administrator/backup# rsync -av ZZZAuto.pm /opt/otrs/Kernel/Config/Files/
root@DEISCITSTEST:/home/administrator/backup# rsync -av TicketCounter.log /opt/otrs/var/log/
root@DEISCITSTEST:/home/administrator/backup# rsync -av article /opt/otrs/var/

cd /opt/otrs/bin
./otrs.SetPermissions.pl --otrs-user=otrs --web-group=www-data /opt/otrs/

/opt/otrs/bin/otrs.CheckModules.pl

cd /opt/otrs/

bin/otrs.CheckDB.pl

cat scripts/DBUpdate-to-4.mysql.sql | mysql -f -u root otrs

Viele INF-Fehler  > ignoriert
***********
INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.

***********

su -c "scripts/DBUpdate-to-4.pl" -s /bin/bash otrs

bin/otrs.RebuildConfig.pl

bin/otrs.DeleteCache.pl

 shell> /etc/init.d/apache2 start
 shell> /etc/init.d/postfix start
 shell> /etc/init.d/cron start
/opt/otrs/bin/otrs.Scheduler.pl -a start
---
Pakete Erneuern:

general catalog
Core
ITSMChangeManagement
ITSMConfigurationManagement
ITSMIncidentProblemManagement
ITSMServiceLevelManagement
FAQ ---------------

cd /opt/otrs/var/cron
for foo in *.dist; do cp $foo `basename $foo .dist`; done
--
 su -c "/opt/otrs/bin/Cron.sh start" -s /bin/bash otrs
 /opt/otrs/bin/Cron.sh restart otrs
---
bin/otrs.RebuildTicketIndex.pl

 /opt/otrs/bin/otrs.Scheduler.pl -a start

-----------
generic Agent Jobs deaktivieren und neu aktivieren

-----------------------------------------------------------------
GenericAgent Jobs werden nicht automatisch eusgeführt:
/opt/otrs/bin/otrs.GenericAgent.pl restart

Comments