Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • ssh to the machine.
  • Go to the directory, where your docker-compose.yml is located (on modern systems: docker compose ls)
  • go into php container
    • docker compose exec php bash
    • or if provided with alias "t5b"
  • check status (no workers running?)
    • t5 status
  • set maintenance mode
    • t5 main:set now
      (or set the maintenance mode to be run at a future point in time with announcement; see options with "t5 main --help")
  • Download install package
  • exit container
    • exit (ctrl-D)
  • update docker
    • docker compose pull
    • docker compose up -d
  • go into php container
    • docker compose exec php bash (or again t5b)
  • update installation
    • sudo -u www-data ./install-and-update.sh name-of-translate5-install-package.zip

    • chown -R www-data:www-data ./ → dangerous:
      • Reasons for the 2 steps above
            • if previous update was done as root
          (what is no problem if nothing in /data/ was added) the above call may not unpack all files.→ quirk:
            • , the chown is important for translate5 to run correctly after the update
            • db-update-scripts may create files in /data with root-rights
          . To be sure, make a "chown -R www-data:www-data
            • .
          /data" to have proper rights for all user-data files
      • disable maintenance mode
        • t5 main:end