Browse files

Add /usr/bin/tmux to /etc/shells (#644813)

  • Loading branch information...
1 parent 050989b commit ff2be7dfe4430ee0cf168724c35c2549c94c0ad0 @orebokech orebokech committed Oct 9, 2011
Showing with 10 additions and 0 deletions.
  1. +6 −0 debian/postinst
  2. +4 −0 debian/postrm
View
6 debian/postinst
@@ -6,4 +6,10 @@ if dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile /etc/init.d/tmux-cleanup 1.4-6 -- "$@"
fi
+if [ "$1" = "configure" ]; then
+ if [ -z "$2" ] || dpkg --compare-versions "$2" lt "1.6~svn2608-2"; then
+ add-shell /usr/bin/tmux
+ fi
+fi
+
#DEBHELPER#
View
4 debian/postrm
@@ -6,4 +6,8 @@ if dpkg-maintscript-helper supports rm_conffile; then
dpkg-maintscript-helper rm_conffile /etc/init.d/tmux-cleanup 1.4-6 -- "$@"
fi
+if [ "$1" = "remove" ]; then
+ remove-shell /usr/bin/tmux
+fi
+
#DEBHELPER#

0 comments on commit ff2be7d

Please sign in to comment.