Add support for alternatives system in Debian package (#1935)

* Allows for micro to be selectable in the `editor` group
* Use same priority as in the nano package

Ref: https://wiki.debian.org/DebianAlternatives
This commit is contained in:
Hugo Hromic
2021-11-17 23:51:40 +00:00
committed by GitHub
parent dd8e341de2
commit 0bbc3e7e3d
3 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/sh
set -e
if [ "$1" != "upgrade" ]; then
update-alternatives --remove editor /usr/bin/micro
fi