From 143e0f330409474e2ab18f265ffff0e47fc06701 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Thu, 29 Nov 2012 09:06:48 +0000 Subject: [PATCH] ubuntu does not ship SHA1.pm any more, all functions are contained in SHA.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14476 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/debian/postinst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server/debian/postinst b/xCAT-server/debian/postinst index 3a87d05c5..5bbbe0d08 100644 --- a/xCAT-server/debian/postinst +++ b/xCAT-server/debian/postinst @@ -32,7 +32,13 @@ case "$1" in fi fi ln -sf /opt/xcat/sbin/xcatd /usr/sbin/xcatd - + #SHA1 has been get rid of after Squeeze released. Its functionality is also provided by Digest::SHA (which is in core). + #but ipmi.pm need SHA1.pm, so create this link + shalocate=`find / -name "SHA.pm"` + shalocate=${shalocate%SHA.pm} + cd $shalocate + ln -s SHA.pm SHA1.pm + cd - ;; abort-upgrade|abort-remove|abort-deconfigure)