Univention Bugzilla – Bug 40192
'univention-app shell' does not set USER and TERM environment variables
Last modified: 2019-01-03 07:19:31 CET
The environment of the commands run via univention-app shell does not container TERM or USER. At least these two should be set, probably for every command. For example, this does not work: univention-app shell $appid top Possible solution: DockerShellEnv=USER=root TERM=$TERM (this is also the default) Maybe we need more? Currently the env is cluttered with some startup variables coming from UCR: REPOSITORY_ONLINE_SERVER=updates.software-univention.de repository_online_server=updates.software-univention.de LOCALE_DEFAULT=de_DE.UTF-8:UTF-8 UPDATE_SECURE_APT=yes etc. It is set in the docker create command. +++ This bug was initially created as a clone of Bug #40119 +++ This already works: docker exec $(ucr get appcenter/apps/$appid/container) COMMAND But this is hard to explain and not very pretty. We would need something like univention-app within $appid COMMAND to enable ISVs to write pretty documentations. Default should be /bin/bash Better use -it (interactive terminal)
A customer noted in Ticket# 2017032121000171 that the vim-behavior in the container differs from the behavior of the host. He accesses the container via docker exec –it „<Id>“ /bin/bash
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.