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