From: Laurent Vallar Date: Wed, 16 Oct 2013 20:46:57 +0000 (+0200) Subject: lxc-debian: Remove perl, use sed instead X-Git-Tag: lxc-1.0.0.alpha2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09da66e667e3bdeb0bae34eeb0e57cd92e35e650;p=thirdparty%2Flxc.git lxc-debian: Remove perl, use sed instead Signed-off-by: Laurent Vallar Acked-by: Stéphane Graber --- diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index d0a16773b..4dd491026 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -81,7 +81,7 @@ EOF chroot $rootfs update-locale LANG=en_US.UTF-8 else 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 chroot $rootfs locale-gen $LANG $encoding chroot $rootfs update-locale LANG=$LANG