Create editor alternative if it does not exists (#368)

This commit is contained in:
Clément Oudot 2012-04-03 12:32:55 +00:00
parent 95a6c8d3ad
commit 1562c3e49f

View File

@ -355,6 +355,11 @@ if [ $1 -gt 1 ] ; then
chgrp %{lm_apachegroup} %{lm_storagefile} || :
fi
fi
# Set editor alternatives if it does not exist
update-alternatives --display editor > /dev/null 2>&1
if [ $? -ne 0 ] ; then
update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
fi
#==============================================================================
# Pre uninstallation