mirror of
https://github.com/skiqqy/skiqqy.github.io
synced 2024-12-24 16:02:06 +00:00
Added comments
This commit is contained in:
parent
8407cc7373
commit
da7f66c166
5
nginxd
5
nginxd
@ -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"}
|
||||
|
Loading…
Reference in New Issue
Block a user