Skip to content

Instantly share code, notes, and snippets.

@PaulMorel
Last active August 8, 2016 15:27
Show Gist options
  • Save PaulMorel/572a10d311157259238717fa2910cec6 to your computer and use it in GitHub Desktop.
Save PaulMorel/572a10d311157259238717fa2910cec6 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#
# Manage user & group owned virtual hosts and server blocks for Apache & nginx
# Displays script usage
usage() {
echo "Usage: $0 [create|remove|edit|enable|disable]"
exit 0
}
while getopts ":h" param; do
case $param in
h ) # Display help.
usage
;;
* )
echo "$0 illegal option $param"
usage
;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment