[wp-trac] Re: [WordPress Trac] #7690: Using SSH2 to upload files/wordpress

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 6 16:16:48 GMT 2008


#7690: Using SSH2 to upload files/wordpress
-------------------------------------+--------------------------------------
 Reporter:  ShaneF                   |        Owner:  anonymous
     Type:  enhancement              |       Status:  new      
 Priority:  normal                   |    Milestone:  2.7      
Component:  Administration           |      Version:  2.7      
 Severity:  normal                   |   Resolution:           
 Keywords:  ssh upgrade dev-testing  |  
-------------------------------------+--------------------------------------
Comment (by ShaneF):

 Ok. In my patch this is what's going on.

 * We now run the command, but we always run an echo to make sure the loop
 checks to see if the command is finished running as SSH could hang there.
 A problem I discovered while testing. It will remove the echo once it
 breaks from the loop. No change to the logic though.

 * The functions "not" working above are still not working. deleting
 folders (unsure about files), transferring (creating) files, and copy.
 '''put_contents''' does not work at all when going through the files.

 * changes to file.php are part of the unzip process which I don't think
 worked at all (?) and I can not seem to go to work. I have marked in my
 patch where it's failing. I commented what I changed for ssh2 to work.
 Unsure if we will have to create a special switch just for ssh processing.
 patch also includes ''technosailor'' patch of 7690-ports.diff for port
 processing. Also added the places where it removes the trailing / as for
 SSH you can't have that slash at the end.

 * changes to update.php are just cosmetic issues including a message to
 indicate to the user that we are updating the core. there was no
 difference, however I noted in the function and placed an "exit" where ssh
 was failing for testing purposes. The debug function will not work when
 FTP is selected as debug doesn't exist in there.

 It does do...

 * Downloads the zip file and deletes it
 * Creates the folders in the right order
 * Check to see if the folders are valid or not valid.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7690#comment:22>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list