Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > 5d7da2a4513b890e22bfaec7eabb4d52 > scriptlet

fusiondirectory-1.0.1-4.mga3.noarch.rpm

PREIN

/bin/sh
# Cleanup compile dir on updates
if [ $1 -eq 1 ]
then
	# Purge Spool directory
	if [ -d /var/spool/fusiondirectory ]
	then
		rm -rf /var/spool/fusiondirectory/*
	fi
	
	# Purge cache directory
	if [ -d /var/cache/fusiondirectory ]
	then
		rm -rf /var/cache/fusiondirectory/*
	fi

fi

POSTIN

/bin/sh
/usr/sbin/update-fusiondirectory

POSTUN

/bin/sh
# Remove temporary files, just to be sure  (Done only for the uninstall process)
if [ $1 -eq 0 ]
then
	# Purge Spool directory
	if [ -d /var/spool/fusiondirectory ]
	then
		rm -rf /var/spool/fusiondirectory/*
	fi

	# Purge cache directory
	if [ -d /var/cache/fusiondirectory ]
	then
		rm -rf /var/cache/fusiondirectory/*
	fi

	# Purge share directory
	if [ -d /usr/share/fusiondirectory ]
	then
		rm -rf /usr/share/cache/fusiondirectory/*
	fi

fi

# Plugins post directives for refreshing the cache