From 3a56777a3894624cf20b62434d21ac27bec7eebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=B3=20Albert=20i=20Beltran?= Date: Fri, 28 May 2021 11:31:14 +0200 Subject: [PATCH] Documentation about change default passwords --- README.md | 6 ++++++ securize_conf.sh | 2 ++ 2 files changed, 8 insertions(+) mode change 100644 => 100755 securize_conf.sh diff --git a/README.md b/README.md index 9fe3189..3427ac7 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,12 @@ See `docs` directory for Markdown files or the [auto-built site](https://digital cp digitaldemocratic.conf.sample digitaldemocratic.conf ``` +Change default passwords + +``` +./securize_conf.sh +``` + Edit digitaldemocratic.conf file variables to suit your needs. ``` diff --git a/securize_conf.sh b/securize_conf.sh old mode 100644 new mode 100755 index 2d9a0f8..4d6556e --- a/securize_conf.sh +++ b/securize_conf.sh @@ -1,3 +1,5 @@ +#!/bin/sh + PWD=$(shuf -n3 /usr/share/dict/words | tr -d "\n" | tr -d "'") sed -i "/^SMTP_PASSWORD=/c\SMTP_PASSWORD=$PWD" digitaldemocratic.conf