Closed OneCDOnly closed 4 years ago
Probably because this line in sherpa.sh:InstallQPKG()
allows 0 or 10 (and I added it so long ago I forgot):
if [[ $result -eq 0 || $result -eq 10 ]]; then
Now, if only I knew why QPKGs generate 10 as an exitcode. Might need to ask QNAP.
Ah, looks like this is it: https://github.com/qnap-dev/QDK/blob/b5573bec245e936eef044c80c6871fd1fafcbee5/shared/bin/qbuild#L657-L658
# Return value 0 to keep the QPKG package after installation
# Return value 10 to remove QPKG package after installation
Which I think means packages return 0 if they are to be kept after install, and 10 if they are to be deleted. I wonder why a package would be allowed to determine if it's to be deleted?
Need to test whether a failed init start
yields a usable return code if it happens during package installation.
Nope. Package install can be OK, but if the package init start
fails, this isn't returned to the shell. :disappointed:
This is a QNAP problem. I'm not yet sure how to workaround this.
Clearly, return codes from the init scripts are being lost on the way back to sherpa. :confused:
These packages have been fixed: