Skip to content
Open
Changes from 1 commit
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/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