mirror of
https://gh.llkk.cc/https://github.com/WeblateOrg/scripts.git
synced 2025-10-03 15:01:00 +08:00
Initial version of scripts
Not yet tested, based on manual install. Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
428aac52b3
commit
bfc79651c6
4 changed files with 172 additions and 0 deletions
28
bootstrap
Executable file
28
bootstrap
Executable 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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue