File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -298,8 +298,8 @@ configure_st2_cli_config() {
298
298
CURRENT_USER_CLI_CONFIG_DIRECTORY=" ${HOME} /.st2"
299
299
CURRENT_USER_CLI_CONFIG_PATH=" ${CURRENT_USER_CLI_CONFIG_DIRECTORY} /config"
300
300
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 \
303
303
--username ${USERNAME} --password ${PASSWORD}
304
304
305
305
# Write config for root user
@@ -308,12 +308,9 @@ configure_st2_cli_config() {
308
308
fi
309
309
310
310
# 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 \
313
313
--username ${USERNAME} --password ${PASSWORD}
314
-
315
- # Fix the permissions
316
- chown -R ${CURRENT_USER} :${CURRENT_USER} ${CURRENT_USER_CLI_CONFIG_DIRECTORY}
317
314
}
318
315
319
316
You can’t perform that action at this time.
0 commit comments