Integrate feedback from Thomas Lange (thanks for the review!)
[grml-live.git] / etc / grml / fai / config / scripts / GRML / 90-update-alternatives
index 6100e77..40b64b5 100755 (executable)
@@ -2,6 +2,7 @@
 set -u
 set -e
 
-if [ -r "$target"/usr/bin/vim.basic ] ; then
-   chroot "$target" update-alternatives --set editor /usr/bin/vim.basic
+# FIXME: use /etc/grml/fai/... as base
+if [ -r $target/usr/bin/vim.basic ] ; then
+   $ROOTCMD update-alternatives --set editor /usr/bin/vim.basic
 fi