File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -298,8 +298,8 @@ configure_st2_cli_config() {
298298 CURRENT_USER_CLI_CONFIG_DIRECTORY=" ${HOME} /.st2"
299299 CURRENT_USER_CLI_CONFIG_PATH=" ${CURRENT_USER_CLI_CONFIG_DIRECTORY} /config"
300300
301- sudo st2 login --config-file ${ROOT_USER_CLI_CONFIG_PATH} \
302- --write-password \
301+ sudo st2 --config-file ${ROOT_USER_CLI_CONFIG_PATH} \
302+ login --write-password \
303303 --username ${USERNAME} --password ${PASSWORD}
304304
305305 # Write config for root user
@@ -308,12 +308,9 @@ configure_st2_cli_config() {
308308 fi
309309
310310 # Write config for current user (in case current user != root)
311- st2 login --config-file ${CURRENT_USER_CLI_CONFIG_PATH} \
312- --write-password \
311+ st2 --config-file ${CURRENT_USER_CLI_CONFIG_PATH} \
312+ login --write-password \
313313 --username ${USERNAME} --password ${PASSWORD}
314-
315- # Fix the permissions
316- chown -R ${CURRENT_USER} :${CURRENT_USER} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
317314}
318315
319316
You can’t perform that action at this time.
0 commit comments