[SOLVED] Howto patch multiple galleries from customers?

geoschmucker

Joined: 2005-09-21
Posts: 5
Posted: Sun, 2005-10-16 15:53

Hello,

I have several customers with an gallery on my server. How can I apply the patch to all the users in a simple way? I don't know the passwords from the customers since the can change the password to something the choose. I tried to create another Admin account with phpmyadmin but then I can't login to system to do the conversion..

Anyone an idee?

Regards,
Peter

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-10-16 16:11

Write a script to cd into each user's gallery2 directory and run the patch command..
http://codex.gallery2.org/index.php/Gallery2:Upgrading_from_2.0_to_2.0.1#Option_3._Applying_a_patch

 
geoschmucker

Joined: 2005-09-21
Posts: 5
Posted: Sun, 2005-10-16 17:48

that part is the easy part, but when a user visits the photoalbum, Conversion screen appears. And then a user must enter his or her password for the admin account. I want to prevent that step by doing it myself.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-16 18:03

the admin of a specific G2 always has to run the upgrade wizard. IMO that's the easy part, just entering the admin password and clicking 5 times next.

 
geoschmucker

Joined: 2005-09-21
Posts: 5
Posted: Sun, 2005-10-16 18:11

thats the problem.. I have several users with standalone albums.. each user has it's own admin password, and the options to change it.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-16 18:18

i don't quite understand your setup.
you're now speaking of

Quote:
standalone albums

. do you mean each user has its own G2? that's the way we understood your first post in this topic.

Quote:
each user has it's own admin password, and the options to change it.

how is that a problem?

 
geoschmucker

Joined: 2005-09-21
Posts: 5
Posted: Sun, 2005-10-16 18:23

each user has it's standalone g2 gallery on my system. But I want to upgrade all of the gallery installations, without the need of a user conversion of the gallery. To do so I need all the admin accounts or is there an other way?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-16 18:27

why not let your users complete the update process? it's quite easy...

else:
yes, you need the setup password for each g2 installation. it's stored in config.php.
in future, you might ask your customers to change the password of their admin user after the installation process (your account -> change password).
then the setup password and the admin user password won't be the same and you and your customer can share the setup password for maintenance tasks (e.g. upgrade g2), but your customer is still the only user who knows the password for the admin user.

 
geoschmucker

Joined: 2005-09-21
Posts: 5
Posted: Sun, 2005-10-16 18:42

thankz for your help.. :) it worked...