mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 08:12:20 +00:00
lxc-debian: Remove perl, use sed instead
Signed-off-by: Laurent Vallar <val@zbla.net> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
90ccc878de
commit
09da66e667
@ -81,7 +81,7 @@ EOF
|
|||||||
chroot $rootfs update-locale LANG=en_US.UTF-8
|
chroot $rootfs update-locale LANG=en_US.UTF-8
|
||||||
else
|
else
|
||||||
encoding=$(echo $LANG | cut -d. -f2)
|
encoding=$(echo $LANG | cut -d. -f2)
|
||||||
chroot $rootfs perl -pe "s/^# (${LANG} ${encoding})/\1/" \
|
chroot $rootfs sed -e "s/^# \(${LANG} ${encoding}\)/\1/" \
|
||||||
-i /etc/locale.gen 2>/dev/null
|
-i /etc/locale.gen 2>/dev/null
|
||||||
chroot $rootfs locale-gen $LANG $encoding
|
chroot $rootfs locale-gen $LANG $encoding
|
||||||
chroot $rootfs update-locale LANG=$LANG
|
chroot $rootfs update-locale LANG=$LANG
|
||||||
|
Loading…
Reference in New Issue
Block a user