Upgrade Weblate

Follow these steps:

  • Only if upgrading from Weblate v2.2 to v2.3, execute these commands:

      $ cd /opt/bitnami/apps/weblate
      $ examples/migrate-south --settings weblate.settings
  • Back up the MySQL database and the data/ directory:

      $ mysqldump -u root -p presently > weblate_backup.sql
      $ tar zcvf data.tar.gz /opt/bitnami/apps/weblate/data
      $ /opt/bitnami/ctlscript.sh stop
  • Install the new version of Weblate and run the following commands:

      $ cd /opt/bitnami
      $ rm -rf apps/weblate/data
      $ tar xzf data.tar.gz -C apps/weblate
      $ mysql -u root -p presently < weblate_backup.sql
  • Run the database migrations in this order:

      $ cd /opt/bitnami/apps/weblate
      $ ./manage.py makemigrations
      $ ./manage.py migrate
      $ ./manage.py migrate --fake accounts 0004_auto_20150108_1424
      $ ./manage.py migrate --fake lang 0001_initial
      $ ./manage.py migrate --fake trans 0018_auto_20150213_1447
      $ ./manage.py migrate
      $ ./manage.py setupgroups
      $ ./manage.py setuplang

More information can be found in the official documentation.

Last modification April 8, 2020