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

Update von OTRS 4.0... zu 5.0...

shell> /etc/init.d/cron stop
shell> /etc/init.d/postfix stop
shell> /etc/init.d/apache2 stop

cd /opt/otrs/

bin/Cron.sh stop 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/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-5.0.10.tar.gz
rsync -av otrs-5.0.10/* /opt/otrs/


root@DEISCITSTEST:/home/administrator/backup# rsync -av Config.pm /opt/otrs/Kernel/
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
apt-get install -y libxml-libxml-perl
apt-get install -y libxml-libxslt-perl
-------------

# Ändern der Tabellen zur Engine InnoDB
cd /opt/otrs/
su -c "bin/otrs.Console.pl Maint::Database::MySQL::InnoDBMigration --force" -s /bin/bash otrs

root@DEISCITSTEST:/etc/mysql# nano my.cnf
default-storage-engine=InnoDB

/etc/init.d/mysql restart
------

cd /opt/otrs/

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

su -c "bin/otrs.Console.pl Maint::Database::Check" -s /bin/bash otrs

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


-----

su -c "bin/otrs.Console.pl Maint::Config::Rebuild" -s /bin/bash otrs
su -c "bin/otrs.Console.pl Maint::Cache::Delete" -s /bin/bash otrs

---------

 shell> /etc/init.d/apache2 start
 shell> /etc/init.d/postfix start
 shell> /etc/init.d/cron start

---
Pakete Erneuern:

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

su -c "/opt/otrs/bin/otrs.Daemon.pl start" -s /bin/bash otrs

--
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
 
---

Fertig ist!
Comments