scripts/bootstrap

36 lines
625 B
Text
Raw Normal View History

#!/bin/sh
echo "Weblate domain:"
read domain
echo "Weblate title:"
read title
echo "Sentry DSN:"
read sentry
2020-04-14 15:23:07 +02:00
echo "Sentry Token:"
read sentry_token
echo "Matomo site id:"
read matomo
echo "Matomo token:"
read matomo_token
smtp_pass=$(openssl rand -hex 32)
cat > /etc/weblate-bootstrap <<EOT
WEBLATE_DOMAIN="$domain"
WEBLATE_TITLE="$title"
WEBLATE_SECRET=$(openssl rand -hex 32)
WEBLATE_SENTRY="$sentry"
2020-04-14 15:23:07 +02:00
WEBLATE_SENTRY_TOKEN="$sentry_token"
# Matomo
MATOMO_SITE="$matomo"
MATOMO_TOKEN="$matomo_token"
# Exim
EXIM_PASS=$smtp_pass
# $(openssl passwd -6 "$smtp_pass")
# Postgresql
POSTGRES_PASS=$(openssl rand -hex 32)
EOT