Use cat instead of echo for usage function

This commit is contained in:
Victor LABORIE 2018-03-27 16:31:50 +02:00
parent 8680b742dd
commit 0927e79954

36
bkctld
View file

@ -9,23 +9,25 @@
# #
usage(){ usage(){
echo "Usage: $0 <subcommand> [options]" cat <<EOF
echo "Subcommands:" Usage: $0 <subcommand> [options]
echo " init <jailname> Init jail <jailname>" Subcommands:
echo " update <jailname>|all Update jail <jailname> or all" init <jailname> Init jail <jailname>
echo " remove <jailname>|all Remove jail <jailname> or all" update <jailname>|all Update jail <jailname> or all
echo " start <jailname>|all Start jail <jailname> or all" remove <jailname>|all Remove jail <jailname> or all
echo " stop <jailname>|all Stop jail <jailname> or all" start <jailname>|all Start jail <jailname> or all
echo " reload <jailname>|all Reload jail <jailname> or all" stop <jailname>|all Stop jail <jailname> or all
echo " restart <jailname>|all Restart jail <jailname> or all" reload <jailname>|all Reload jail <jailname> or all
echo " sync <jailname>|all Sync jail <jailname> or all to another node" restart <jailname>|all Restart jail <jailname> or all
echo " status [<jailname>] Print status of <jailname> (default all jail)" sync <jailname>|all Sync jail <jailname> or all to another node
echo " key <jailname> [<keyfile>] Set or get ssh pubic key of <jailname>" status [<jailname>] Print status of <jailname> (default all jail)
echo " port <jailname> [<ssh_port>|auto] Set or get ssh port of <jailname>" key <jailname> [<keyfile>] Set or get ssh pubic key of <jailname>
echo " ip <jailname> [<ip>|all] Set or get allowed(s) ip(s) of <jailname>" port <jailname> [<ssh_port>|auto] Set or get ssh port of <jailname>
echo " inc Make incremental inc of all jails" ip <jailname> [<ip>|all] Set or get allowed(s) ip(s) of <jailname>
echo " rm Remove old incremtal inc of all jails" inc Make incremental inc of all jails
echo "" rm Remove old incremtal inc of all jails
EOF
} }
## logging functions ## logging functions