mirror of
https://gh.llkk.cc/https://github.com/WeblateOrg/scripts.git
synced 2025-10-03 15:01:00 +08:00
chore(deps): update pre-commit hook scop/pre-commit-shfmt to v3.12.0-1 (#307)
* chore(deps): update pre-commit hook scop/pre-commit-shfmt to v3.12.0-1 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
c2ca1f3e17
commit
64d215f99d
15 changed files with 384 additions and 384 deletions
24
bootstrap
24
bootstrap
|
@ -4,33 +4,33 @@ echo "Weblate domain:"
|
|||
read -r domain
|
||||
cloud_domain="${domain%.weblate.cloud}"
|
||||
if [ "$cloud_domain" = "$domain" ]; then
|
||||
echo "Cloud domain (without .weblate.cloud):"
|
||||
read -r cloud_domain
|
||||
echo "Cloud domain (without .weblate.cloud):"
|
||||
read -r cloud_domain
|
||||
fi
|
||||
echo "Weblate title:"
|
||||
read -r title
|
||||
if [ -f ~/.config/weblate-bootstrap/sentry_dsn ]; then
|
||||
sentry=$(cat ~/.config/weblate-bootstrap/sentry_dsn)
|
||||
sentry=$(cat ~/.config/weblate-bootstrap/sentry_dsn)
|
||||
else
|
||||
echo "Sentry DSN:"
|
||||
read -r sentry
|
||||
echo "Sentry DSN:"
|
||||
read -r sentry
|
||||
fi
|
||||
if [ -f ~/.config/weblate-bootstrap/sentry_token ]; then
|
||||
sentry_token=$(cat ~/.config/weblate-bootstrap/sentry_token)
|
||||
sentry_token=$(cat ~/.config/weblate-bootstrap/sentry_token)
|
||||
else
|
||||
echo "Sentry Token:"
|
||||
read -r sentry_token
|
||||
echo "Sentry Token:"
|
||||
read -r sentry_token
|
||||
fi
|
||||
if [ -f ~/.config/weblate-bootstrap/graylog_token ]; then
|
||||
graylog_token=$(cat ~/.config/weblate-bootstrap/graylog_token)
|
||||
graylog_token=$(cat ~/.config/weblate-bootstrap/graylog_token)
|
||||
else
|
||||
echo "Graylog Token:"
|
||||
read -r graylog_token
|
||||
echo "Graylog Token:"
|
||||
read -r graylog_token
|
||||
fi
|
||||
|
||||
smtp_pass=$(openssl rand -hex 32)
|
||||
|
||||
cat > "${1:-/etc/weblate-bootstrap}" << EOT
|
||||
cat >"${1:-/etc/weblate-bootstrap}" <<EOT
|
||||
WEBLATE_DOMAIN="$domain"
|
||||
WEBLATE_CLOUD_DOMAIN="$cloud_domain"
|
||||
WEBLATE_TITLE="$title"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue