Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > d95bd1b852ce9de3c862a20193534e55 > scriptlet

pam_mount-0.33-2mdv2008.1.x86_64.rpm

PREIN

/bin/sh
#
# On upgrade, when pmt.conf exists and pmt.conf.xml does not,
# create pmt.conf.xml with size 0 to signal conversion.
#
f="/etc/security/pam_mount.conf";
if [ "$1" -eq 2 -a -e "$f" ]; then
	touch -a "$f.xml";
fi;

POSTIN

/bin/sh
#
# pmt.conf.xml always exists now.
#
f="/etc/security/pam_mount.conf";
if [ -e "$f" -a ! -s "$f.xml" ]; then
	"/usr/sbinls /convert_pam_mount_conf.pl" \
		<"$f" >"$f.xml";
	echo -en "Configuration migration from pam_mount.conf to pam_mount.conf.xml ";
	if [ "$?" -eq 0 ]; then
		echo "successful - also please check any ~/.pam_mount.conf files.";
	else
		echo "failed";
	fi;
fi;