Bug 51203 - Multiple bugs in univention-ssl.postinst
Multiple bugs in univention-ssl.postinst
Status: RESOLVED FIXED
Product: UCS
Classification: Unclassified
Component: SSL
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 5.0-6
Assigned To: Philipp Hahn
UCS maintainers
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-05-04 08:21 CEST by Philipp Hahn
Modified: 2023-12-12 11:34 CET (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.086
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2020-05-04 08:21:41 CEST
Setting up univention-ssl (13.0.0-7) ...
...
skipped. SSL Certificate found in /etc/univention/ssl/ucsCA/certs
ln: failed to create symbolic link '/usr/local/share/ca-certificates/ucsCA.crt': No such file or directory
/var/lib/dpkg/info/univention-ssl.postinst: line 113: return: can only `return' from a function or sourced script
/var/lib/dpkg/info/univention-ssl.postinst: line 114: update-ca-certificates: command not found
/var/lib/dpkg/info/univention-ssl.postinst: line 114: return: can only `return' from a function or sourced script

debian/univention-ssl.postinst
  113 »···»···ln -snf "/etc/univention/ssl/ucsCA/CAcert.pem" "$SSL" || return $?
  114 »···»···update-ca-certificates --fresh || return $?                                                                                                                                                                                                                      

Patch:
sed -i -e 's/return/exit/' debian/univention-ssl.postinst
sed -i -e '/^Depends:/a\' -e ' ca-certificates,' debian/control
Comment 2 Philipp Hahn univentionstaff 2023-12-12 11:34:36 CET
[5.0-6] 0de41fb16b fix(ssl): Use only configures attributes
 base/univention-ssl/make-certificates.sh | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

[5.0-6] fd0d5307f1 fix(ssl): Handles IDs as string
 base/univention-ssl/debian/changelog     | 1 +
 base/univention-ssl/make-certificates.sh | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

[5.0-6] 8c3e0144d5 style(ssl): shell code
 base/univention-ssl/debian/univention-ssl.postinst | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

[5.0-6] 7e8b618cdf fix(ssl): Depend on ca-certificates
 base/univention-ssl/debian/changelog | 5 +++--
 base/univention-ssl/debian/control   | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

[5.0-6] 42d0f14a70 Bug #56832: UCS 5.0-6 version bump
 base/univention-ssl/debian/changelog | 6 ++++++
 1 file changed, 6 insertions(+)

Package: univention-ssl
Version: 14.0.5-1
Branch: ucs_5.0-0
Scope: ucs5.0-6