2019-09-22 14:25:22 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "Weblate domain:"
|
|
|
|
read domain
|
|
|
|
echo "Weblate title:"
|
|
|
|
read title
|
2019-11-25 19:50:59 +01:00
|
|
|
echo "Sentry DSN:"
|
2019-09-22 14:25:22 +02:00
|
|
|
read sentry
|
2020-04-14 15:23:07 +02:00
|
|
|
echo "Sentry Token:"
|
|
|
|
read sentry_token
|
2019-09-22 14:25:22 +02:00
|
|
|
echo "Matomo site id:"
|
|
|
|
read matomo
|
2019-10-24 13:00:49 +02:00
|
|
|
echo "Matomo token:"
|
|
|
|
read matomo_token
|
2019-09-22 14:25:22 +02:00
|
|
|
|
|
|
|
smtp_pass=$(openssl rand -hex 32)
|
|
|
|
|
2019-09-22 20:13:55 +02:00
|
|
|
cat > /etc/weblate-bootstrap <<EOT
|
2019-09-22 14:25:22 +02:00
|
|
|
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"
|
2019-09-22 14:25:22 +02:00
|
|
|
|
2019-10-24 13:00:49 +02:00
|
|
|
# Matomo
|
|
|
|
MATOMO_SITE="$matomo"
|
|
|
|
MATOMO_TOKEN="$matomo_token"
|
|
|
|
|
2019-09-22 14:25:22 +02:00
|
|
|
# Exim
|
|
|
|
EXIM_PASS=$smtp_pass
|
2019-10-24 12:52:06 +02:00
|
|
|
# $(openssl passwd -6 "$smtp_pass")
|
2019-09-22 14:25:22 +02:00
|
|
|
|
2019-09-22 20:40:56 +02:00
|
|
|
# Postgresql
|
|
|
|
POSTGRES_PASS=$(openssl rand -hex 32)
|
2019-09-22 20:17:42 +02:00
|
|
|
EOT
|