13 lines
321 B
Bash
13 lines
321 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ remove = "$1" ] ; then
|
|
dpkg-divert --package secure-su --remove --rename \
|
|
--divert /bin/secure-su/su /bin/su
|
|
dpkg-divert --package secure-su --remove --rename \
|
|
--divert /usr/man/man1/gnu-su.1.gz /usr/man/man1/su.1.gz
|
|
rm /bin/secure-su/README.gz
|
|
rmdir /bin/secure-su || true
|
|
fi
|