File: postinst

package info (click to toggle)
switchsh 0~20070801-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 104 kB
  • ctags: 36
  • sloc: ansic: 395; makefile: 12; sh: 7
file content (13 lines) | stat: -rw-r--r-- 235 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

bin=/usr/bin/switchsh

if [ "$1" = "configure" ] && output="$(LC_ALL=C dpkg-statoverride --list $bin)"; then
    if [ "$output" = "root root 4755 $bin" ]; then
	dpkg-statoverride --remove $bin
    fi
fi

#DEBHELPER#