Initial version of scripts

Not yet tested, based on manual install.

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2019-09-22 14:25:22 +02:00
parent 428aac52b3
commit bfc79651c6
4 changed files with 172 additions and 0 deletions

28
bootstrap Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh

echo "Weblate domain:"
read domain
echo "Weblate title:"
read title
echo "Sentry DNS:"
read sentry
echo "Matomo site id:"
read matomo
echo "Munin whitelist:"
read munin

smtp_pass=$(openssl rand -hex 32)

cat > /tmp/weblate-bootstrap <<EOT
WEBLATE_DOMAIN="$domain"
WEBLATE_TITLE="$title"
WEBLATE_SECRET=$(openssl rand -hex 32)
WEBLATE_PIWIK="$matomo"
WEBLATE_SENTRY="$sentry"

# Exim
EXIM_PASS=$smtp_pass
# $(openssl passwd -6 -salt $(openssl rand -hex 6) "$smtp_pass")
EOT