Univention Bugzilla – Bug 32543
univention-add-app ignores ServerRole
Last modified: 2015-03-11 15:07:06 CET
univention-add-app ignores the ServerRole setting from the ini file. For example:
$ grep ServerRole meta-inf/3.2/zarafa_XXXXXXX.ini
On a memberserver the command 'univention-add-app -a --latest zarafa' installs zarafa.
This is because tests are only run in UMC module, the script simply calls install().
Caveat when implemented: ServerRole=memberserver would prevent installation on DC master even when called only for master packages.
Maybe one could run the tests by default but ignore errors on --force?
Prevents app installation in
Exception: If --master is given, the app is installed on DC Master/Backup anyway. Not a very likely exception, because apps probably are installable on a DC Master in any case, but this way it is more safer.
Code review: OK