@Fineness9996 this is a tough one for me since I have only limited git knowledge. But we get closer!
Please give feedback if I understand your new results right:
Observation
The Onlyoffice download script (no matter if modified or unmodifed) works without problems if run in another directory, right?
Conlusion
So this would mean that the cause of the problem is somewhere in your "grown" CryptPad installation, specifically in the git files / environment. Please don't misunderstand me, the cause is not your fault, it just only happens with the specific cicumstances of your instance, that's why the developers can't reproduce and fix it. :-/
Workaround
If the theory is correct you should be able to work around the problem by downloading Onlyoffice and copying it manually into your CryptPad installation. Please try the following (of course make backups before or rename the old directories!):
- again download Onlyoffice via another directory like you have done before successfully with the
ootest
directory
- replace your directory
/home/cryptpad/cryptpad/www/common/onlyoffice/dist/v7/
with the contents of the successfull Onlyoffice download from {path}/ootest/www/common/onlyoffice/dist/v7/
(of course all the content, so all files and all sub directories)
Outlook
I think this should do the trick. Please give feedback. If it's not the solution then it will be like 90% of it and we will solve the rest. What bugs me is that I think you will get this problem again with every update of the CryptPad OnlyOffice part. Especially since one can expect CryptPad to use Onyloffice version 8 with one of the following CryptPad updates. So unless someone with git knowledge hels to solve the git cause better be prepared for your next CryptPad updates.