Add support for specifying which locales should be copied and generated by update_chroot.sh --locales
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plesk/kb-scripts
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
plesk/kb-scripts#67 ·
All issues in plesk/kb-scripts
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug easy help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
lacs-project/sysknife#503 ·
-
help wanted kind/documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
liquidmetal-dev/flintlock#1239 ·