From cf1a9fe893b3266fb7e40d3f71ca25f07e165e38 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Wed, 6 May 2020 11:57:32 +0000 Subject: [PATCH] [TOOLS] Added script to configure the installation and to bootstrap certificate creation with Let's Encrypt --- bin/bootstrap_certificates | 21 ++++++++++++++ bin/bootstrap_certificates.sh | 40 -------------------------- bin/configure | 53 +++++++++++++++++++++++++++++++++++ social.env | 10 ------- 4 files changed, 74 insertions(+), 50 deletions(-) create mode 100755 bin/bootstrap_certificates delete mode 100755 bin/bootstrap_certificates.sh create mode 100755 bin/configure delete mode 100644 social.env diff --git a/bin/bootstrap_certificates b/bin/bootstrap_certificates new file mode 100755 index 0000000000..d699b772b6 --- /dev/null +++ b/bin/bootstrap_certificates @@ -0,0 +1,21 @@ +#!/bin/sh + +read -p "Domain root: " domain_root +read -p "Subdomain (can be empty): " sub_domain +read -p "Email: " email + +if [ -z $sub_domain ]; then + domain="${domain_root}" +else + domain="${sub_domain}.${domain_root}" +fi + +mkdir -p ./docker/bootstrap + +cat > ./docker/bootstrap/bootstrap.env < ../docker/bootstrap/bootstrap.env < ../docker/social/social.env < ./docker/db/db.env < ./docker/db/db.env < .env.local + +mkdir -p ./docker/social + +cat > ./docker/social/social.env <