[wp-trac] Re: [WordPress Trac] #7690: Using SSH2 to upload
files/wordpress
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 5 08:48:23 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 DD32):
In that patch there was some inverse logic in some functions on the output
of run_command()
It turns out ssh2_exec() returns an empty string on success, and a string
on failure, which is the oppisite of what its expecting.
It looks to me like inverting that value in the run_command() function,
and removing the invertions i added in the other functions should probably
make it work nicely.
However, SSH is VERY slow for me, And it times out after 120seconds after
about 15 commands..
Also: Due to those logic inversions i mentioned, '''Plugin upgrades might
do funky things to your filesystem''', for example, chmoding /home/ to
755, and ~ to 755, So dont go testing on a live system (like me) unless
you're sure of what your doing (I hate to say that, but remember it)
--
Ticket URL: <http://trac.wordpress.org/ticket/7690#comment:17>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list