Skip to content

Commit

Permalink
Update exegol env name
Browse files Browse the repository at this point in the history
Signed-off-by: Dramelac <[email protected]>
  • Loading branch information
Dramelac committed Oct 11, 2023
1 parent 1885fb2 commit 289d753
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions exegol/model/ContainerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ class ExegolMetadata(Enum):
password = "org.exegol.metadata.passwd"

class ExegolEnv(Enum):
user_shell = "START_SHELL"
shell_logging_method = "START_SHELL_LOGGING"
shell_logging_compress = "START_SHELL_COMPRESS"
desktop_protocol = "DESKTOP_PROTO"
desktop_host = "DESKTOP_HOST"
desktop_port = "DESKTOP_PORT"
user_shell = "EXEGOL_START_SHELL"
shell_logging_method = "EXEGOL_START_SHELL_LOGGING"
shell_logging_compress = "EXEGOL_START_SHELL_COMPRESS"
desktop_protocol = "EXEGOL_DESKTOP_PROTO"
desktop_host = "EXEGOL_DESKTOP_HOST"
desktop_port = "EXEGOL_DESKTOP_PORT"

# Label features (label name / wrapper method to enable the feature)
__label_features = {ExegolFeatures.shell_logging.value: "enableShellLogging",
Expand Down
6 changes: 3 additions & 3 deletions exegol/utils/imgsync/spawn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ function shell_logging() {
}

# Find default user shell to use from env var
user_shell=${START_SHELL:-"/bin/zsh"}
user_shell=${EXEGOL_START_SHELL:-"/bin/zsh"}

# If shell logging is enable, the method to use is stored in env var
if [ "$START_SHELL_LOGGING" ]; then
shell_logging "$START_SHELL_LOGGING" "$user_shell" "$START_SHELL_COMPRESS"
if [ "$EXEGOL_START_SHELL_LOGGING" ]; then
shell_logging "$EXEGOL_START_SHELL_LOGGING" "$user_shell" "$EXEGOL_START_SHELL_COMPRESS"
else
$user_shell
fi
Expand Down

0 comments on commit 289d753

Please sign in to comment.