home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP.
[config]
/
all_new_2018
/
letsencrypt_local_set.sh
diff --git
a/all_new_2018/letsencrypt_local_set.sh
b/all_new_2018/letsencrypt_local_set.sh
index a7ec6e50451550af30a90591fdd7ff31128eaf2f..7030b575e0f5009f747cae08866473909ca02b75 100755
(executable)
--- a/
all_new_2018/letsencrypt_local_set.sh
+++ b/
all_new_2018/letsencrypt_local_set.sh
@@
-6,7
+6,7
@@
if [ $# -lt 1 ]; then
echo "Need mail address as argument."
false
fi
echo "Need mail address as argument."
false
fi
-
mail_address
="$1"
+
domain
="$1"
# If port 80 blocked by iptables, open it.
set +e
# If port 80 blocked by iptables, open it.
set +e
@@
-18,7
+18,7
@@
if [ "${open_iptables}" -eq "1" ]; then
fi
# Create new certificate and copy it to /etc/letsencrypt.
fi
# Create new certificate and copy it to /etc/letsencrypt.
-certbot certonly --standalone --agree-tos -m "${mail}" -d "$(hostname -f)"
+certbot certonly --standalone --agree-tos -m "${mail
_address
}" -d "$(hostname -f)"
# Remove iptables rule to open port 80 if we added it.
if [ "${open_iptables}" -eq "1" ]; then
# Remove iptables rule to open port 80 if we added it.
if [ "${open_iptables}" -eq "1" ]; then