Create editor alternative if it does not exists (#368)
This commit is contained in:
parent
95a6c8d3ad
commit
1562c3e49f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user