File tree 4 files changed +16
-16
lines changed
4 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ configure_st2_cli_config() {
181
181
CURRENT_USER_CLI_CONFIG_DIRECTORY=" ${HOME} /.st2"
182
182
CURRENT_USER_CLI_CONFIG_PATH=" ${CURRENT_USER_CLI_CONFIG_DIRECTORY} /config"
183
183
184
- sudo st2 login --config-file ${ROOT_USER_CLI_CONFIG_PATH} \
185
- --write-password \
184
+ sudo st2 --config-file ${ROOT_USER_CLI_CONFIG_PATH} \
185
+ login --write-password \
186
186
--username ${USERNAME} --password ${PASSWORD}
187
187
188
188
# Write config for root user
@@ -191,8 +191,8 @@ configure_st2_cli_config() {
191
191
fi
192
192
193
193
# Write config for current user (in case current user != root)
194
- st2 login --config-file ${CURRENT_USER_CLI_CONFIG_PATH} \
195
- --write-password \
194
+ st2 --config-file ${CURRENT_USER_CLI_CONFIG_PATH} \
195
+ login --write-password \
196
196
--username ${USERNAME} --password ${PASSWORD}
197
197
198
198
# Fix the permissions
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,8 +308,8 @@ 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
314
315
315
# Fix the permissions
Original file line number Diff line number Diff line change @@ -293,8 +293,8 @@ configure_st2_cli_config() {
293
293
CURRENT_USER_CLI_CONFIG_DIRECTORY=" ${HOME} /.st2"
294
294
CURRENT_USER_CLI_CONFIG_PATH=" ${CURRENT_USER_CLI_CONFIG_DIRECTORY} /config"
295
295
296
- sudo st2 login --config-file ${ROOT_USER_CLI_CONFIG_PATH} \
297
- --write-password \
296
+ sudo st2 --config-file ${ROOT_USER_CLI_CONFIG_PATH} \
297
+ login --write-password \
298
298
--username ${USERNAME} --password ${PASSWORD}
299
299
300
300
# Write config for root user
@@ -303,8 +303,8 @@ configure_st2_cli_config() {
303
303
fi
304
304
305
305
# Write config for current user (in case current user != root)
306
- st2 login --config-file ${CURRENT_USER_CLI_CONFIG_PATH} \
307
- --write-password \
306
+ st2 --config-file ${CURRENT_USER_CLI_CONFIG_PATH} \
307
+ login --write-password \
308
308
--username ${USERNAME} --password ${PASSWORD}
309
309
310
310
# Fix the permissions
Original file line number Diff line number Diff line change @@ -293,8 +293,8 @@ configure_st2_cli_config() {
293
293
CURRENT_USER_CLI_CONFIG_DIRECTORY=" ${HOME} /.st2"
294
294
CURRENT_USER_CLI_CONFIG_PATH=" ${CURRENT_USER_CLI_CONFIG_DIRECTORY} /config"
295
295
296
- sudo st2 login --config-file ${ROOT_USER_CLI_CONFIG_PATH} \
297
- --write-password \
296
+ sudo st2 --config-file ${ROOT_USER_CLI_CONFIG_PATH} \
297
+ login --write-password \
298
298
--username ${USERNAME} --password ${PASSWORD}
299
299
300
300
# Write config for root user
@@ -303,8 +303,8 @@ configure_st2_cli_config() {
303
303
fi
304
304
305
305
# Write config for current user (in case current user != root)
306
- st2 login --config-file ${CURRENT_USER_CLI_CONFIG_PATH} \
307
- --write-password \
306
+ st2 --config-file ${CURRENT_USER_CLI_CONFIG_PATH} \
307
+ login --write-password \
308
308
--username ${USERNAME} --password ${PASSWORD}
309
309
310
310
# Fix the permissions
You can’t perform that action at this time.
0 commit comments