Bug 1070871 - "/etc/zypp/zypp.conf:rpm.install.excludedocs = yes" breaks dovecot post scriptlet -> no working dovecot in containers
"/etc/zypp/zypp.conf:rpm.install.excludedocs = yes" breaks dovecot post scrip...
Status: RESOLVED WONTFIX
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Peter Varkoly
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-01 23:01 UTC by Marcus Rückert
Modified: 2022-02-14 14:20 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Rückert 2017-12-01 23:01:42 UTC
```
rpm -q --scripts dovecot
preinstall scriptlet (using /bin/sh):
/usr/sbin/groupadd -r dovecot >/dev/null 2>&1 || :
/usr/sbin/useradd -g dovecot -s /bin/false -r -c "User for Dovecot imapd" -d /var/run/dovecot dovecot >/dev/null 2>&1 || :
/usr/sbin/useradd -g dovecot -s /bin/false -r -c "User for Dovecot login" -d /var/run/dovecot dovenull >/dev/null 2>&1 || :
# try to copy the default configuration.
#
# we fail silently if the dovecot-implementation package is not
# installed yet. This allows us to break a little build loop between
# dovecot and dovecotXY.
if [ ! -e /etc/dovecot/dovecot.conf -a -e /usr/share/doc/packages/dovecot/example-config/dovecot.conf ] ; then
  # install default config
  echo "Did not find a /etc/dovecot/dovecot.conf. copying default configuration"
  cp -na /usr/share/doc/packages/dovecot/example-config/* /etc/dovecot/
  # the chmod breaks the lda. lets use the more open permissions
  #chmod -Rv o= /etc/dovecot/
fi

```

so yeah ... no config if installed without docs
Comment 1 Marcus Rückert 2017-12-02 18:36:16 UTC
best would probably to move the example config to /usr/share/dovecot/ together with the mkcert script ... and only have them as symlinks in the doc dir so that we dont break existing documentation.
Comment 2 Swamp Workflow Management 2017-12-25 19:30:05 UTC
This is an autogenerated message for OBS integration:
This bug (1070871) was mentioned in
https://build.opensuse.org/request/show/559876 Factory / dovecot
Comment 3 Stefano Torresi 2021-05-12 17:20:07 UTC
Closing due to inactivity.
Comment 4 OBSbugzilla Bot 2022-02-14 14:20:03 UTC
This is an autogenerated message for OBS integration:
This bug (1070871) was mentioned in
https://build.opensuse.org/request/show/954323 Factory / dovecot