Add support for specifying which locales should be copied and generated by update_chroot.sh --locales
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Shell
- Stelle
- 8
- Fork
- 22
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di plesk/kb-scripts
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
plesk/kb-scripts#67 ·
Tutte le issue di plesk/kb-scripts
Issue simili
-
Bob Shell support Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
openSUSE/python-rpm-macros#219 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
YunoHost-Apps/adguardhome_ynh#258 ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repair Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
ValveSoftware/SteamOS#2829 ·