feat: [CDE-576]: fix intellij support (#3222)

* feat: [CDE-576]: fix debian warning
* feat: [CDE-576]: fix intellij support
BT-10437
Deepak Bhatt 2025-01-03 05:31:22 +00:00 committed by Harness
parent da756c486f
commit a094a54ac7
5 changed files with 8 additions and 8 deletions

View File

@ -132,7 +132,7 @@ func (ij *Intellij) setupIntellijIDE(
}
err = exec.ExecuteCommandInHomeDirAndLog(ctx, intellijIDEScript,
true, gitspaceLogger, true)
false, gitspaceLogger, true)
if err != nil {
return fmt.Errorf("failed to setup intellij IDE: %w", err)
}
@ -218,7 +218,7 @@ func (ij *Intellij) runRemoteIDE(
"failed to generate scipt to run intelliJ IDE from template %s: %w", templateRunSSHServer, err)
}
err = exec.ExecuteCommandInHomeDirAndLog(ctx, runSSHScript, true, gitspaceLogger, true)
err = exec.ExecuteCommandInHomeDirAndLog(ctx, runSSHScript, false, gitspaceLogger, true)
if err != nil {
return fmt.Errorf("failed to run intelliJ IDE: %w", err)
}

View File

@ -11,7 +11,7 @@ install_git() {
echo "Git is not installed. Installing Git..."
case "$(distro)" in
debian)
apt-get update && apt-get install -y git
export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y git
;;
fedora)
dnf install -y git

View File

@ -19,7 +19,7 @@ install_tool() {
case "$os_dist" in
debian|ubuntu)
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y "$tool"
export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y "$tool"
;;
fedora)
dnf install -y "$tool"

View File

@ -58,8 +58,8 @@ EXTRACTED_DIRNAME=$(basename "$(find "$INTELLIJ_PATH" -maxdepth 1 -type d)")
mv "$INTELLIJ_PATH/$EXTRACTED_DIRNAME/"* "$INTELLIJ_PATH"
rm -r "$INTELLIJ_PATH/$EXTRACTED_DIRNAME"
if [ -d "$INTELLIJ_PATH" ]; then
chown -R "$username:$username" "$INTELLIJ_PATH"
if [ -d "$USER_HOME" ]; then
chown -R "$username:$username" "$USER_HOME"
fi
# Cleanup

View File

@ -10,8 +10,8 @@ if ! command -v sshd >/dev/null 2>&1; then
case "$(distro)" in
debian)
apt-get update
apt-get install -y openssh-server
export DEBIAN_FRONTEND=noninteractive && apt-get update
export DEBIAN_FRONTEND=noninteractive && apt-get install -y openssh-server
;;
fedora)
dnf install -y openssh-server