Univention Bugzilla – Bug 41418
bashism in ucs-school-umc-csv-import postinst
Last modified: 2017-03-21 12:35:54 CET
ucs-school-umc-csv-import (3.0.2-1.45.201605311905) wird eingerichtet ... /var/lib/dpkg/info/ucs-school-umc-csv-import.postinst: 32: /var/lib/dpkg/info/ucs-school-umc-csv-import.postinst: configure: not found patch: diff --git a/ucs-school-umc-csv-import/debian/ucs-school-umc-csv-import.postinst b/ucs-school-umc-csv-import/debian/ucs-school-umc-csv-import.postinst index 825de26..1dfbef4 100644 --- a/ucs-school-umc-csv-import/debian/ucs-school-umc-csv-import.postinst +++ b/ucs-school-umc-csv-import/debian/ucs-school-umc-csv-import.postinst @@ -32 +32 @@ -if "$1" == "configure" && dpkg --compare-versions "$2" lt 2.0.7-1; then +if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 2.0.7-1; then
*** Bug 43187 has been marked as a duplicate of this bug. ***
Please check if the UCR variable has ever been set in any UCS@school version. Fixing this line will set the UCR variable for the first time. Maybe we should change the default or remove the 3 lines at all.
The corresponding code block has never been executed and has been removed from postinst. Package: ucs-school-umc-csv-import Version: 3.0.5-1.54.201703021514 Branch: ucs_4.1-0 Scope: ucs-school-4.1r2 ucs-school-umc-csv-import.yaml: r77249 | Bug #41387, 41418: added advisory ucs-school-umc-csv-import (3.0.5-1): r77251 | Bug #41418: remove broken code block in postinst
OK: advisory (fixed typo in r77277) OK: removal of unused code (cleanup) OK: advisory OK: merge to UCS@school 4.2
UCS@school 4.1 R2 v10 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v10-de.html If this error occurs again, please clone this bug.