Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/includes/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ configure_st2_cli_config() {
# Configure CLI config (write credentials for the root user and user which ran the script)
ROOT_USER="root"
CURRENT_USER=$(whoami)
CURRENT_GROUP=$(id -gn)

ROOT_HOME=$(eval echo ~${ROOT_USER})
: "${HOME:=$(eval echo ~${CURRENT_USER})}"
Expand Down Expand Up @@ -211,7 +212,7 @@ password = ${PASSWORD}
EOT"

# Fix the permissions
sudo chown -R ${CURRENT_USER}:${CURRENT_USER} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
sudo chown -R ${CURRENT_USER}:${CURRENT_GROUP} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
}


Expand Down
3 changes: 2 additions & 1 deletion scripts/st2bootstrap-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ configure_st2_cli_config() {
# Configure CLI config (write credentials for the root user and user which ran the script)
ROOT_USER="root"
CURRENT_USER=$(whoami)
CURRENT_GROUP=$(id -gn)

ROOT_HOME=$(eval echo ~${ROOT_USER})
: "${HOME:=$(eval echo ~${CURRENT_USER})}"
Expand Down Expand Up @@ -328,7 +329,7 @@ password = ${PASSWORD}
EOT"

# Fix the permissions
sudo chown -R ${CURRENT_USER}:${CURRENT_USER} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
sudo chown -R ${CURRENT_USER}:${CURRENT_GROUP} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
}


Expand Down
3 changes: 2 additions & 1 deletion scripts/st2bootstrap-el7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ configure_st2_cli_config() {
# Configure CLI config (write credentials for the root user and user which ran the script)
ROOT_USER="root"
CURRENT_USER=$(whoami)
CURRENT_GROUP=$(id -gn)

ROOT_HOME=$(eval echo ~${ROOT_USER})
: "${HOME:=$(eval echo ~${CURRENT_USER})}"
Expand Down Expand Up @@ -322,7 +323,7 @@ password = ${PASSWORD}
EOT"

# Fix the permissions
sudo chown -R ${CURRENT_USER}:${CURRENT_USER} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
sudo chown -R ${CURRENT_USER}:${CURRENT_GROUP} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
}


Expand Down
3 changes: 2 additions & 1 deletion scripts/st2bootstrap-el8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ configure_st2_cli_config() {
# Configure CLI config (write credentials for the root user and user which ran the script)
ROOT_USER="root"
CURRENT_USER=$(whoami)
CURRENT_GROUP=$(id -gn)

ROOT_HOME=$(eval echo ~${ROOT_USER})
: "${HOME:=$(eval echo ~${CURRENT_USER})}"
Expand Down Expand Up @@ -326,7 +327,7 @@ password = ${PASSWORD}
EOT"

# Fix the permissions
sudo chown -R ${CURRENT_USER}:${CURRENT_USER} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
sudo chown -R ${CURRENT_USER}:${CURRENT_GROUP} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
}


Expand Down