kugel.sh 418 Bytes
Newer Older
Daniel STAN's avatar
Daniel STAN committed
1 2
#!/bin/bash

Daniel STAN's avatar
Daniel STAN committed
3
DOMAINS=""
4 5
DIR=/tmp/letsencrypt-auto

Daniel STAN's avatar
Daniel STAN committed
6
letsencrypt=/usr/bin/certbot
7 8
case $(/bin/hostname) in
  kugel)
9 10 11 12 13
  DOMAINS="$DOMAINS -d re2o-dev.tudo.re -d kugel.tudo.re"
  ;;
  *)
  echo "Run on kugel only !"
  exit 1
14 15 16
  ;;
esac

Daniel STAN's avatar
Daniel STAN committed
17 18 19 20
mkdir -p $DIR
$letsencrypt certonly -a webroot --webroot-path=$DIR $DOMAINS
#$letsencrypt renew -a webroot --webroot-path=$DIR $DOMAINS
#$letsencrypt renew -a webroot --webroot-path=$DIR