]> git.proxmox.com Git - pve-container.git/commit
pct: add keep-env option to the 'enter' and 'exec' command
authorFolke Gleumes <f.gleumes@proxmox.com>
Fri, 9 Feb 2024 13:17:09 +0000 (14:17 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Feb 2024 18:55:02 +0000 (19:55 +0100)
commit069553d88d0c2fd9443bbf6a27180da85741a577
treea6660c761a0935a76d922afe82a811d1bfcc4792
parent83f594f6d4fa48c6dcac42d8295367c2238153c4
pct: add keep-env option to the 'enter' and 'exec' command

The keep-env option allows the user to define if the current
environment should be kept when running 'pct enter/exec'. pct will now
always set '--keep-env' or '--clear-env' when calling lxc-attach to
anticipate the upcoming change in default behavior.

Signed-off-by: Folke Gleumes <f.gleumes@proxmox.com>
 [ TL: fix some extra whitespace, extend subject slightly ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/CLI/pct.pm