summaryrefslogtreecommitdiff
path: root/letsencrypt-helpers/vhost-step-2
blob: 7ddc2e632df205a7cce96b5abf63434ebebf9e46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e
set -u

if [ "$#" != 1 ]; then
  echo >&2 "Usage: $0 <fqdn>"
  exit 1
fi

cn="$1"
shift

request-letsencrypt "$cn"
make-apache-crt "$cn"
echo "Now"
echo " service apache2 reload"