Bug 40192 - 'univention-app shell' does not set USER and TERM environment variables
'univention-app shell' does not set USER and TERM environment variables
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on: 40119
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-08 11:26 CET by Dirk Wiesenthal
Modified: 2019-01-03 07:19 CET (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017032121000171
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2015-12-08 11:26:27 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)
Comment 1 Christina Scheinig univentionstaff 2017-03-21 11:19:58 CET
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
Comment 2 Stefan Gohmann univentionstaff 2019-01-03 07:19:31 CET
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.