]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-debian: Remove perl, use sed instead
authorLaurent Vallar <val@zbla.net>
Wed, 16 Oct 2013 20:46:57 +0000 (22:46 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Oct 2013 20:44:33 +0000 (16:44 -0400)
Signed-off-by: Laurent Vallar <val@zbla.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-debian.in

index d0a16773b605c48fe9b4c0f9ab07c286375ade39..4dd491026b2874448ddf63dc7687c4b2d7200d09 100644 (file)
@@ -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