mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
remove the diversion in postinst, rather than preinst
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
fd210ffd2f
commit
2a47857ab0
1 changed files with 4 additions and 3 deletions
7
debian/preinst → debian/postinst
vendored
7
debian/preinst → debian/postinst
vendored
|
@ -5,9 +5,10 @@ PKG="byobu"
|
|||
if [ -x "/usr/bin/screen.real" ]; then
|
||||
# Byobu used to divert the real /usr/bin/screen, but we don't
|
||||
# do this anymore; clean up old diversion if upgrading
|
||||
if ls -alF /usr/bin/screen | grep -qs "/usr/bin/screen -> byobu"; then
|
||||
rm -f /usr/bin/screen
|
||||
fi
|
||||
#if ls -alF /usr/bin/screen | grep -qs "/usr/bin/screen -> byobu"; then
|
||||
# rm -f /usr/bin/screen
|
||||
# mv /usr/bin/screen.real /usr/bin/screen
|
||||
#fi
|
||||
dpkg-divert --package "$PKG" --rename --remove /usr/bin/screen
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue