Bug 38205 - ucs_registerLDAPExtension requires the join script to be installed by a package
ucs_registerLDAPExtension requires the join script to be installed by a package
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Docker
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Arvid Requate
Dirk Wiesenthal
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-07 12:03 CEST by Dirk Wiesenthal
Modified: 2015-11-17 12:11 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2015-04-07 12:03:35 CEST
Docker apps call "outer" join scripts that do not live in any package. When this join script calls

  ucs_registerLDAPExtension

this failes with:
dpkg-query: Kein Pfad gefunden, der auf Muster /usr/lib/univention-install/xxx.inst passt
ERROR: ucs_registerLDAPExtension: Unable to determine Debian package name
ERROR: This function only works in joinscript or postinst context

We need the function to work without the package name. If possible, I would prefer to just remove this requirement. Adding an option (like --debian-package-name) is okay, but would require to adjust every join script during migration.
Comment 1 Arvid Requate univentionstaff 2015-09-24 17:21:19 CEST
Fixed in univention-lib_5.0.0-2.307.201509241708:

The postinst / joinscript check is skipped when called as

  ucs_registerLDAPExtension --packagename foo --packageversion bar "$@"

Changelog entry added.
Comment 2 Dirk Wiesenthal univentionstaff 2015-10-05 18:32:19 CEST
OK, works. See Bug#39475 why we cannot use it at the moment. The App Center calls joinscripts via univention-run-joinscripts.

I have added a line in the latest owncloud8-docker join script and commented it out.
Comment 3 Stefan Gohmann univentionstaff 2015-11-17 12:11:56 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

If this error occurs again, please use "Clone This Bug".