/etc/profile.d/juju-introspection.sh is not POSIX shell compatible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Loïc Gomez |
Bug Description
On a model deployed with Juju 2.9.11, installing spamassassin yields a Syntax error as spamassassin post-installation script attempts to run sa-update as debian-spamd user, having /bin/sh as shell.
$ sudo dpkg --configure spamassassin
Setting up spamassassin (3.4.2-
-su: 92: /etc/profile.
dpkg: error processing package spamassassin (--configure):
installed spamassassin package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
spamassassin
/var/lib/
> su - $OWNER -c "sa-update \
> --gpghomedir /var/lib/
> --import /usr/share/
$ sudo sh -c "su - $OWNER -c 'sa-update --gpghomedir /var/lib/
-su: 92: /etc/profile.
$ getent passwd debian-spamd
debian-
$ sudo sh
# . /etc/profile.
sh: 92: /etc/profile.
Afaik, arrays are not part of POSIX shell specifications.
This bug probably affect other packages than spamassassin.
It seems to be an iteration of https:/
Thanks
Changed in juju: | |
assignee: | nobody → Loïc Gomez (kotodama) |
importance: | Undecided → High |
milestone: | none → 2.9.13 |
status: | New → In Progress |
Changed in juju: | |
status: | In Progress → Won't Fix |
status: | Won't Fix → In Progress |
Changed in juju: | |
milestone: | 2.9.13 → 2.9.14 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
This commit introduced the functions affecting spamassassin post-install: /github. com/juju/ juju/commit/ 8f848216473d8ac 2af9d869386c0e8 c24e87aac4# diff-9ea3cead53 dc6fcc7b570811f 43366947a2c6c68 285042b7a2bd459 caf500291
https:/