From 1acb9398d6ead51bdb7088e86b8a058601428b2d Mon Sep 17 00:00:00 2001 From: xq2005 Date: Sat, 16 Feb 2013 07:53:19 +0000 Subject: [PATCH] only create the link to sha.pm after installation on ubuntu/debian git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15194 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/debian/postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/debian/postinst b/xCAT-server/debian/postinst index 1454388cc..44867873b 100644 --- a/xCAT-server/debian/postinst +++ b/xCAT-server/debian/postinst @@ -38,7 +38,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 - ;;