Univention Bugzilla – Bug 35561
univention-run-join-scripts --run-script foo always exits 0
Last modified: 2021-05-25 15:58:32 CEST
univention-run-join-scripts --run-script foo always exits 0, even if the script foo returns a non-zero exit status. This is unexpected behaviour and should be fixed.
Happened also at Bug #38983.
Created attachment 8843 [details] patch
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Violation of least surprise
The exit code has been corrected: univention-join (12.0.0-3) 4c08e4ffc1af | Bug #35561: fix exitcode of univention-run-join-scripts changelog-5.0-0.xml 67a04897eae5 | Changelog Bug #35561
OK: 4c08e4ffc1af OK: 67a04897eae5 OK: cat /usr/lib/univention-install/09Test.inst #!/bin/bash VERSION=1 . /usr/share/univention-join/joinscripthelper.lib joinscript_init exit 2 joinscript_save_current_version exit 0 univention-run-join-scripts ; echo $? # 1
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".