File: clusterssh.preinst

package info (click to toggle)
clusterssh 4.08-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 784 kB
  • ctags: 189
  • sloc: perl: 3,939; sh: 202; makefile: 11
file content (16 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

# starting with clusterssh-2.0, setuid root is no longer needed
# remove this override so that the new file is installed 755
if [ "$1" = upgrade -o "$1" = install -a -n "$2" ] &&
	dpkg --compare-versions "$2" le 1.56-1 &&         
	[ "`dpkg-statoverride --list /usr/bin/cssh`" = "root bin 4755 /usr/bin/cssh" ]
then
	dpkg-statoverride --remove /usr/bin/cssh
fi

#DEBHELPER#

exit 0