fix: apply shell formatting

This commit is contained in:
Michal Čihař 2025-07-16 15:11:55 +02:00
parent b87618e8cb
commit 925b32ddab
14 changed files with 383 additions and 383 deletions

View file

@ -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"