Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <daniel@techandme.se>2017-06-15 17:46:49 +0300
committerGitHub <noreply@github.com>2017-06-15 17:46:49 +0300
commit41d633694ad6efe32bc9208f3be9816f5d4cbfc9 (patch)
treeff4482218d432bf89f3ed35dc84081e1fdc2a02c /lets-encrypt
parent898f0354a2d79385709ce33f76fed29067b274b5 (diff)
set domain in /etc/hosts (#271)
Diffstat (limited to 'lets-encrypt')
-rw-r--r--lets-encrypt/activate-ssl.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lets-encrypt/activate-ssl.sh b/lets-encrypt/activate-ssl.sh
index 5b0573af..c0ca385e 100644
--- a/lets-encrypt/activate-ssl.sh
+++ b/lets-encrypt/activate-ssl.sh
@@ -108,6 +108,8 @@ then
else
echo "Port 443 is not open on $WANIP4. We will do a second try on $domain instead."
any_key "Press any key to test $domain... "
+ sed -i "s|127.0.1.1.*|127.0.1.1 $domain nextcloud|g" /etc/hosts
+ service networking restart
if [[ $(nmap -sS -PN -p 443 "$domain" | grep -m 1 "open" | awk '{print $2}') = open ]]
then
apt remove --purge nmap -y