clean up help()
This commit is contained in:
parent
4343325188
commit
5eefd2ad93
|
@ -10,12 +10,12 @@ source $(dirname $0)/vhost.sh
|
||||||
help()
|
help()
|
||||||
{
|
{
|
||||||
thisfilename=$(basename -- "$0")
|
thisfilename=$(basename -- "$0")
|
||||||
echo "Creates default MySQL database and db user for specified virtualhost."
|
echo "Creates MySQL database and db user for specified virtualhost."
|
||||||
echo ""
|
echo ""
|
||||||
echo "usage: $thisfilename -d <domain> [OPTIONS]"
|
echo "usage: $thisfilename -d <domain> [OPTIONS]"
|
||||||
echo ""
|
echo ""
|
||||||
echo " -h Print this help."
|
echo " -h Print this help."
|
||||||
echo " -d <domain> Domain name of VirtualHost to remove."
|
echo " -d <domain> Domain name of VirtualHost to add db for."
|
||||||
echo " -u <username> Username for accessing the database. Optional, autogenerated if none specified."
|
echo " -u <username> Username for accessing the database. Optional, autogenerated if none specified."
|
||||||
echo " -p <password> Password for username. Optional, random password generated if none specified."
|
echo " -p <password> Password for username. Optional, random password generated if none specified."
|
||||||
echo " -w Write db info to /srv/www/domain/.my.cnf and create include in"
|
echo " -w Write db info to /srv/www/domain/.my.cnf and create include in"
|
||||||
|
@ -27,7 +27,7 @@ help()
|
||||||
echo " the shell username & the virtualhost name."
|
echo " the shell username & the virtualhost name."
|
||||||
echo " e.g. for virtualost example.com the db name will be 'exampledotcom' and the"
|
echo " e.g. for virtualost example.com the db name will be 'exampledotcom' and the"
|
||||||
echo " username will be examplec@example.com."
|
echo " username will be examplec@example.com."
|
||||||
echo " It is highly recommended to use either the -s or -v option if you don't use -p."
|
echo " It is highly recommended to use either the -w or -v option if you don't use -p."
|
||||||
}
|
}
|
||||||
|
|
||||||
vhost:getoptions "$@"
|
vhost:getoptions "$@"
|
||||||
|
|
|
@ -10,12 +10,12 @@ source $(dirname $0)/vhost.sh
|
||||||
help()
|
help()
|
||||||
{
|
{
|
||||||
thisfilename=$(basename -- "$0")
|
thisfilename=$(basename -- "$0")
|
||||||
echo "Remove MySQL database and default db user for the specified virtualhost."
|
echo "Remove MySQL database and associated db user for the specified virtualhost."
|
||||||
echo ""
|
echo ""
|
||||||
echo "usage: $thisfilename -d <domain>"
|
echo "usage: $thisfilename -d <domain>"
|
||||||
echo ""
|
echo ""
|
||||||
echo " -h Print this help."
|
echo " -h Print this help."
|
||||||
echo " -d <domain> Domain name of VirtualHost to MySQL db for."
|
echo " -d <domain> Domain name of VirtualHost to delete MySQL db for."
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user