aboutsummaryrefslogtreecommitdiffstats
path: root/lfacme-setup.sh
blob: f690cba8d435773eb37b3b1d383e87848c704965 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh
# This source code is released into the public domain.

# Parse command-line arguments.
args=$(getopt c:vy $*)
if [ $? -ne 0 ]; then
	exit 1
fi
set -- $args

_uacme_flags=""

while :; do
	case "$1" in
	-c)
		_CONFDIR="$2"
		shift; shift;;
	-v)
		LFACME_VERBOSE=1
		shift;;
	-y)
		_uacme_flags="$_uacme_flags $1"
		shift;;
	--)
		shift; break;;
	esac
done

# Initialise.
. /usr/local/share/lfacme/init.sh

# Run uacme.
mkdir -p "$_UACME_DIR"
_uacme $_uacme_flags new