Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / lib / dpkg / info / | server ip : 104.21.89.46 your ip : 172.70.80.98 H O M E |
Filename | /var/lib/dpkg/info/ecryptfs-utils.prerm |
Size | 1.05 kb |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 10:01 |
Last modified | 16-Jan-2016 08:29 |
Last accessed | 06-Jul-2025 21:48 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh -e
if [ "$1" = remove ]; then
# We should do some checking to prevent removal of ecryptfs if in use
# Check active mounts
if out=`mount | grep "\Wtype\Wecryptfs\W"`; then
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo "$out" 1>&2
fi
if out=`grep "\Wecryptfs\W" /proc/mounts`; then
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo "$out" 1>&2
fi
# Check fstab
if out=`grep "\Wecryptfs\W" /etc/fstab`; then
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo "$out" 1>&2
fi
# Check home directories
for i in `ls /home`; do
if [ -d "/home/$i/.ecryptfs" ]; then
# If we find a .ecryptfs directory (or link) in a home,
# directory, then someone is using ecryptfs-utils, and
# we should not allow package removal
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo " [/home/$i/.ecryptfs]" 1>&2
fi
done
pam-auth-update --package --remove ecryptfs-utils
fi
exit 0
if [ "$1" = remove ]; then
# We should do some checking to prevent removal of ecryptfs if in use
# Check active mounts
if out=`mount | grep "\Wtype\Wecryptfs\W"`; then
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo "$out" 1>&2
fi
if out=`grep "\Wecryptfs\W" /proc/mounts`; then
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo "$out" 1>&2
fi
# Check fstab
if out=`grep "\Wecryptfs\W" /etc/fstab`; then
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo "$out" 1>&2
fi
# Check home directories
for i in `ls /home`; do
if [ -d "/home/$i/.ecryptfs" ]; then
# If we find a .ecryptfs directory (or link) in a home,
# directory, then someone is using ecryptfs-utils, and
# we should not allow package removal
echo "WARNING: Should not remove ecryptfs-utils, as it appears to be in use:" 1>&2
echo " [/home/$i/.ecryptfs]" 1>&2
fi
done
pam-auth-update --package --remove ecryptfs-utils
fi
exit 0