From 245123680007c2ddace19e8a57b3218788a804e4 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 8 Mar 2013 03:00:17 +0000 Subject: [PATCH] sync from trunk git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15422 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/debian/postinst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/debian/postinst b/xCAT-server/debian/postinst index 1454388cc..24601c1a1 100644 --- a/xCAT-server/debian/postinst +++ b/xCAT-server/debian/postinst @@ -31,6 +31,7 @@ case "$1" in if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image /etc/init.d/xcatd reload fi + rm /tmp/xCAT-server_upgrade.tmp 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). @@ -38,7 +39,9 @@ case "$1" in shalocate=`find / -name "SHA.pm"` shalocate=${shalocate%SHA.pm} cd $shalocate - ln -s SHA.pm SHA1.pm + if [ ! -e SHA1.pm ];then + ln -s SHA.pm SHA1.pm + fi cd - ;;