Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add support for specifying which locales should be copied and generated by update_chroot.sh --locales

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
shell
Domain
cli, devops

Research direction

Start in update-chroot/update-chroot.sh around the --locales flag at line 370 and trace how locale files are copied and generated. Define completion as accepting a list such as en_US, de_DE, and fr_FR while excluding unspecified locales from chroot environments; check the script's existing usage and validation paths for related behavior.

Written by the indexing model from the issue text.

Description

As it is now, update_root.sh’s --locales flag copies every locale.

$ du -ch /var/www/vhosts/chroot/usr/{share/i18n,share/locale,lib/locale} | grep total
223M    total

Multiply this by hundreds of subscriptions and the disk usage racks up quite a bit.

By adding support for specifying which locales should be copied, any locale not specified will not be copied and generated, reducing disk usage by locales in chrooted environments by an approximated 80 to 90%, if not more, depending on how many locales you specify.

I would like to be able to run update_root.sh --locales en_US de_DE fr_FR or something along those lines to specify which locales should be available in the chrooted environments.

Dominant language
Shell
Stars
8
Forks
22
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plesk/kb-scripts

All issues in plesk/kb-scripts

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.