Skip to content

Commit a27d8f1

Browse files
committed
doc: Add sq_AL (Albanian) to locale examples in hardening guide
Clarify that locale codes should be entered without .UTF-8 suffix as the script adds it automatically.
1 parent 60f7783 commit a27d8f1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/harden-ubuntu-lts-24.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ On first run, you'll be prompted for:
4141
|----------|-------------|
4242
| `ADMIN_EMAIL` | Email for unattended-upgrades notifications |
4343
| `GITHUB_USERS` | Space-separated GitHub usernames for SSH key fetching |
44-
| `EXTRA_LOCALES` | Extra locales to enable (e.g., `nb_NO fr_FR`) |
44+
| `EXTRA_LOCALES` | Extra locales to enable, without `.UTF-8` suffix (e.g., `sq_AL nb_NO`) |
4545
| `CADDY_PLUGINS` | Caddy plugins for custom build (empty = standard Caddy) |
4646

4747
Configuration is saved to `~/.harden-ubuntu.env` and reused on subsequent runs.
@@ -65,7 +65,7 @@ For automation, create the `.env` file first:
6565
cat > ~/.harden-ubuntu.env << 'EOF'
6666
ADMIN_EMAIL="admin@example.com"
6767
GITHUB_USERS="githubuser1 githubuser2"
68-
EXTRA_LOCALES="nb_NO fr_FR"
68+
EXTRA_LOCALES="sq_AL nb_NO"
6969
CADDY_PLUGINS=""
7070
EOF
7171

doc/harden-ubuntu-lts-24.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ ADMIN_EMAIL="${ADMIN_EMAIL:-}"
139139
# Space-separated GitHub usernames for SSH key fetching
140140
GITHUB_USERS="${GITHUB_USERS:-}"
141141
142-
# Space-separated extra locale codes (e.g., "nb_NO ru_RU fr_FR")
143-
# C.UTF-8 and en_US.UTF-8 are always included
142+
# Space-separated extra locale codes without .UTF-8 suffix (e.g., "sq_AL nb_NO")
143+
# The script adds .UTF-8 automatically. C.UTF-8 and en_US.UTF-8 are always included.
144144
EXTRA_LOCALES="${EXTRA_LOCALES:-}"
145145
146146
# Space-separated Caddy plugins for xcaddy build (empty = standard Caddy)
@@ -234,7 +234,7 @@ setup_env() {
234234
log "Create one with the following variables:"
235235
echo " ADMIN_EMAIL=\"your@email.com\""
236236
echo " GITHUB_USERS=\"username1 username2\""
237-
echo " EXTRA_LOCALES=\"nb_NO fr_FR\""
237+
echo " EXTRA_LOCALES=\"sq_AL nb_NO\""
238238
echo " CADDY_PLUGINS=\"\""
239239
exit 1
240240
fi
@@ -243,7 +243,7 @@ setup_env() {
243243

244244
prompt_env_value "ADMIN_EMAIL" "Email address for system notifications (unattended-upgrades):"
245245
prompt_env_value "GITHUB_USERS" "GitHub usernames for SSH key fetching (space-separated):"
246-
prompt_env_value "EXTRA_LOCALES" "Extra locales to enable (e.g., 'nb_NO ru_RU fr_FR'):"
246+
prompt_env_value "EXTRA_LOCALES" "Extra locales to enable without .UTF-8 suffix (e.g., 'sq_AL nb_NO'):"
247247
prompt_caddy_plugins
248248

249249
save_env

0 commit comments

Comments
 (0)