forked from brielle/lets-encrypt-scripts
Fixing a few things...
parent
07a2e87985
commit
569e3799fe
|
@ -24,10 +24,10 @@ if [ $# -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
while getopts "g:z:" opt; do
|
while getopts "gz" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
g) downloadtype="git";;
|
g) downloadtype="git";;
|
||||||
t) downloadtype="zip";;
|
z) downloadtype="zip";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -35,9 +35,11 @@ cd ${DESTDIR}
|
||||||
|
|
||||||
case $downloadtype in
|
case $downloadtype in
|
||||||
git)
|
git)
|
||||||
|
echo "Cloning repo into ${DESTDIR}..."
|
||||||
git clone ${GITREPO}
|
git clone ${GITREPO}
|
||||||
;;
|
;;
|
||||||
tar)
|
tar)
|
||||||
|
echo "Downloading ${ZIPURL} into ${DESTDIR}
|
||||||
curl -o letsencrypt.zip ${ZIPURL}
|
curl -o letsencrypt.zip ${ZIPURL}
|
||||||
unzip letsencrypt.zip
|
unzip letsencrypt.zip
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue