Page tree

Versions Compared

Key

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

...

This How-To shows you, how to update a translate5 installation which is set up as shown in the translate5 Ubuntu installation How-To

Update the file tree

...

Open the command line.

Change to translate5 directory:

and database structure

Although our updates are well tested, we strongly recommend to make a backup of the whole application directory

...

/var/www/translate5

...

Change to the Linux apache user, to automatically give the files the correct rights

su apache

Update translate5 and its submodules and dependencies via git

git pull
git submodule foreach git pull
cd application/modules/editor

and the translate5 database!
This is currently not part of this manual or the update script itself!

Open the command line.

Change to translate5 directory:

 

Code Block
languagebash

...

cd /var/www/translate5

...

git submodule foreach git pull

Update the database structure

Log into your mysql via command line

mysql -u root -p translate5

In the mysql prompt insert the following query, which allows you, to call the database updater.
Caution: You have to deactivate this afterwards to disable public access.

INSERT INTO Zf_acl_rules (`module`, `role`, `resource`, `right`) values('default', 'noRights', 'database', 'all') ON DUPLICATE KEY UPDATE `module` = 'default', `role` = 'noRights', `resource` = 'database', `right` = 'all';

Open your browser and call

http://translate5.l/database/forceimportall

If you are a translate5 expert, you cann call as an alternative to the previous browser call

http://translate5.l/database/import

This will show you a list of database update scripts, which need to be imported. You can choose, which script you want to execute or skip.

In any case: Important: Please go back to your mysql prompt and execute the following query:


sudo su -c ./install-and-update.sh www-data

 

 

The script is looking for file updates on our server. If there is a new version available, the package is downloaded and installed automatically.

Database is also updated automatically. DELETE FROM Zf_acl_rules WHERE module = 'default' AND resource = 'database';

That's it. You are done. translate5 is up2date (smile)