@OP
It's very complex. You should consult a professional WordPress developer.
@previous (E)
It has been said, literally, praytell, that we do, in fact, have one on this very fora!
@previous (Killer Lettuce !!iNo3FkiZx)
He is not, I do believe, posting, at this time. Thanks.
@517,099 (B)
You forgot --no-preserve-root
@previous (E)
Read again m8. It was ./* which would recursively delete anything
in the current directory, as opposed to just "/". This makes more sense for two reasons:
1) This person is likely using a shared host, thus they don't have write access to the root drive anyway
2) The most important files are likely stored in the working directory, and wordpress' working directory tends to be the public_html directory where write perms start.
Additionally I believe only rm -rf / would require --no-preserve-root, and that rm -rf /* would work just fine since the shell would expand that to the files/directories contained within the root, and thus would not be deleting the root and would not trigger that check. Not sure though!
@517,120 (I)
@517,125 (J)
@517,128 (I)
@previous (K)
I am glad you all agree. Thank you thank you. Thanks.