Last active
August 8, 2016 15:27
-
-
Save PaulMorel/572a10d311157259238717fa2910cec6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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