<commit_before>Updating Zammad
***************

Source update
=============

**Note: Please backup your Zammad instance before update!**

1. Download Zammad on your system
---------------------------------

You can directly download Zammad from https://ftp.zammad.com/ or use the direct url to get the latest stable release via https://ftp.zammad.com/zammad-latest.tar.gz

::

 root@shell> wget https://ftp.zammad.com/zammad-latest.tar.gz
 root@shell> cd /opt/
 root@shell> tar -xzf zammad-latest.tar.gz
 root@shell> chown -R zammad /opt/zammad
 root@shell> su - zammad

2. Install all dependencies
---------------------------

::

 zammad@shell> cd zammad
 zammad@shell> gem install bundler

* For PostgreSQL (note, the option says "without ... mysql")::

 zammad@shell> bundle install --without test development mysql

* For MySQL (note, the option says "without ... postgres")::

 zammad@shell> bundle install --without test development postgres


3. Stop zammad services
-----------------------

Stop the application server, websocket server and scheduler.

4. Upgrade your database
------------------------

::

 zammad@shell> export RAILS_ENV=production
 zammad@shell> export RAILS_SERVE_STATIC_FILES=true # only if you use no http reverse proxy
 zammad@shell> rake db:migrate

5. Start zammad services
------------------------

Start the application server, websocket server and scheduler.

6. Go and login to Zammad
-------------------------



Update with RPM
===============

**Note: Please backup your Zammad instance before update!**

1. Verify repo baseurl
----------------------

During development we reorganized our repo structure. Please update your /etc/yum.repos.d/zammad.repo with the
correct baseurl (see below).

CentOS7

::
<commit_msg>Added missing step.<commit_after>Updating Zammad
***************

Source update
=============

**Note: Please backup your Zammad instance before update!**

1. Download Zammad on your system
---------------------------------

You can directly download Zammad from https://ftp.zammad.com/ or use the direct url to get the latest stable release via https://ftp.zammad.com/zammad-latest.tar.gz

::

 root@shell> wget https://ftp.zammad.com/zammad-latest.tar.gz
 root@shell> cd /opt/
 root@shell> tar -xzf zammad-latest.tar.gz
 root@shell> chown -R zammad /opt/zammad
 root@shell> su - zammad

2. Install all dependencies
---------------------------

::

 zammad@shell> cd zammad
 zammad@shell> gem install bundler

* For PostgreSQL (note, the option says "without ... mysql")::

 zammad@shell> bundle install --without test development mysql

* For MySQL (note, the option says "without ... postgres")::

 zammad@shell> bundle install --without test development postgres


3. Stop zammad services
-----------------------

Stop the application server, websocket server and scheduler.

4. Upgrade your database
------------------------

::

 zammad@shell> export RAILS_ENV=production
 zammad@shell> export RAILS_SERVE_STATIC_FILES=true # only if you use no http reverse proxy
 zammad@shell> rake db:migrate
 zammad@shell> rake assets:precompile 

5. Start zammad services
------------------------

Start the application server, websocket server and scheduler.

6. Go and login to Zammad
-------------------------



Update with RPM
===============

**Note: Please backup your Zammad instance before update!**

1. Verify repo baseurl
----------------------

During development we reorganized our repo structure. Please update your /etc/yum.repos.d/zammad.repo with the
correct baseurl (see below).

CentOS7

::

{'fraction_non_alphanumeric': 0.19927027785573956, 'fraction_numerical': 0.004490597810833568, 'mean_word_length': 2.685625646328852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 28, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5351360', 'n_tokens_mistral': 1059, 'n_tokens_neox': 970, 'n_words': 367}