|
@ -1,8 +1,15 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin |
|
|
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin |
|
|
|
|
|
|
|
|
|
|
|
# PATH to inifiles / letsencrypt dir |
|
|
LECONFIGDIR="~/.config/letsencrypt" |
|
|
LECONFIGDIR="~/.config/letsencrypt" |
|
|
|
|
|
|
|
|
|
|
|
# Catch missing LECONFIGDIR |
|
|
|
|
|
if [ ! -d "${LECONFIGDIR}" ]; then |
|
|
|
|
|
echo "$0: ${LECONFIGDIR} does not exists! Maybe letsencrypt is not yet initialised!" >&2 |
|
|
|
|
|
exit 1 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
# Get all existing inifiles matching namescheme cli-${domain}.ini |
|
|
# Get all existing inifiles matching namescheme cli-${domain}.ini |
|
|
for inifile in "${LECONFIGDIR}/cli-*.ini"; do |
|
|
for inifile in "${LECONFIGDIR}/cli-*.ini"; do |
|
|
|
|
|
|
|
|