Added comments

This commit is contained in:
Stephen Cochrane 2020-10-15 00:00:43 +02:00
parent 8407cc7373
commit da7f66c166

5
nginxd
View File

@ -24,11 +24,13 @@ link () {
ln -s /etc/nginx/sites-available/$1 /etc/nginx/sites-enabled/$1
}
# Handle arguments and do basic error checking
while getopts "he:d:u:" opt
do
case $opt in
h)
help_menu
exit 0
;;
e | d)
[ ! -z $unit ] && error "Unit <$unit> already set." 1
@ -44,6 +46,9 @@ do
esac
done
# if not specified, then by default we enable everything
[ -z $unit ] && unit="all" && oper="e"
# Available units
units=( git blog wiki irc proj all )
unitsd=${unitsd-"./units"}