forked from ISPsystem/isp-maintenance
		
	Fix: help msg missing auth subcommand
This commit is contained in:
		
							parent
							
								
									6c6df42e7f
								
							
						
					
					
						commit
						5815c84b07
					
				| @ -61,40 +61,39 @@ help() { | |||||||
| 	local script=$(colorize GREEN "$_SCRIPT_NAME") | 	local script=$(colorize GREEN "$_SCRIPT_NAME") | ||||||
| 	local required=$(colorize RED "required") | 	local required=$(colorize RED "required") | ||||||
| 	# help message | 	# help message | ||||||
| 	printf "Usage: $script [options [parameters]]                         \n" | 	printf "Usage: $script [options [parameters]]                              \n" | ||||||
| 	printf "                                                              \n" | 	printf "                                                                   \n" | ||||||
| 	printf "Examples:                                                     \n" | 	printf "Examples:                                                          \n" | ||||||
| 	printf "                                                              \n" | 	printf "                                                                   \n" | ||||||
| 	printf "${script} --init | init config file                           \n" | 	printf "${script} --init | init config file                                \n" | ||||||
| 	printf "${script} --crt  | get ssh certificate for go3 connections    \n" | 	printf "${script} --crt  | get ssh certificate for go3 connections         \n" | ||||||
| 	printf "                                                              \n" | 	printf "                                                                   \n" | ||||||
| 	printf "${script} --bill my.example.com                               \n" | 	printf "${script} --bill my.example.com                                    \n" | ||||||
| 	printf "${script} --vm 0.0.0.0 --ssh | only ssh access                \n" | 	printf "${script} --vm 0.0.0.0 --ssh | only ssh access                     \n" | ||||||
| 	printf "${script} --vm 0.0.0.0 --tty | use mgrctl interactive         \n" | 	printf "${script} --vm 0.0.0.0 --tty | use mgrctl interactive              \n" | ||||||
| 	printf "                                                              \n" | 	printf "                                                                   \n" | ||||||
| 	printf "${script} --dci 0.0.0.0 --mgrctl user access --id 3 --count 5 \n" | 	printf "${script} --dci 0.0.0.0 --mgrctl auth user access --id 3 --count 5 \n" | ||||||
| 	printf "${script} --dci 0.0.0.0 --mgrctl user ls --admins             \n" | 	printf "${script} --dci 0.0.0.0 --mgrctl auth user ls --admins             \n" | ||||||
| 	printf "${script} --dci 0.0.0.0 --mgrctl user --help                  \n" | 	printf "${script} --vm 0.0.0.0 --port 22122 --mgrctl auth user ls --admins \n" | ||||||
| 	printf "${script} --vm 0.0.0.0 --port 22122 --mgrctl user ls --admins \n" | 	printf "${script} --vm 0.0.0.0 --tty --mgrctl auth user ls --admins        \n" | ||||||
| 	printf "${script} --vm 0.0.0.0 --tty --mgrctl user ls --admins        \n" | 	printf "${script} --dns ns1.example.com --web-port 1501                    \n" | ||||||
| 	printf "${script} --dns ns1.example.com --web-port 1501               \n" | 	printf "${script} --dns ns1.example.com --port 22122 --web-port 1501       \n" | ||||||
| 	printf "${script} --dns ns1.example.com --port 22122 --web-port 1501  \n" | 	printf "${script} --bill my.example.com --port 22 --web-port 1501          \n" | ||||||
| 	printf "${script} --bill my.example.com --port 22 --web-port 1501     \n" | 	printf "                                                                   \n" | ||||||
| 	printf "                                                              \n" | 	printf "Options:                                                           \n" | ||||||
| 	printf "Options:                                                      \n" | 	printf "                                                                   \n" | ||||||
| 	printf "                                                              \n" | 	printf " --vm[dci|bill|dns|ip] expected ip_addr             $required      \n" | ||||||
| 	printf " --vm[dci|bill|dns|ip] expected ip_addr             $required \n" | 	printf " --port     | -p    ssh port,   default 22                         \n" | ||||||
| 	printf " --port     | -p       ssh port,   default 22                 \n" | 	printf " --web-port | -wp   web port,   default 443                        \n" | ||||||
| 	printf " --web-port | -wp      web port,   default 443                \n" | 	printf " --go/--go3         go version, default go3                        \n" | ||||||
| 	printf " --go/--go3            go version, default go3                \n" | 	printf " --ssh              open only ssh session                          \n" | ||||||
| 	printf " --ssh                 open only ssh session                  \n" | 	printf " --tty              for vm6/dci6 echo cmd for run container        \n" | ||||||
| 	printf " --tty                 for vm6/dci6 echo cmd for run container\n" | 	printf " --mgrctl [args]    for vm6/dci6 customize access params           \n" | ||||||
| 	printf " --mgrctl [args]       for vm6/dci6 customize access params   \n" | 	printf "                                                                   \n" | ||||||
| 	printf "                                                              \n" | 	printf " --init     | -i    generate configuration                         \n" | ||||||
| 	printf " --init     | -i  generate configuration                      \n" | 	printf " --crt      | -c    generate ssh cert                              \n" | ||||||
| 	printf " --crt      | -c  generate ssh cert                           \n" | 	printf " --version  | -v    print version                                  \n" | ||||||
| 	printf " --version  | -v  print version                               \n" | 	printf " --help     | -h    print this message and exit                    \n" | ||||||
| 	printf " --help     | -h  print this message and exit                 \n" |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| # Ask confirmation user if No - exit with 1 state | # Ask confirmation user if No - exit with 1 state | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user