create dir /var/run/xcat/ for pid files on ubuntu

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14173 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-10-31 09:33:52 +00:00
parent 3c84ec61cb
commit db0bad0c5d
2 changed files with 53 additions and 0 deletions

View File

@ -1,3 +1,45 @@
xcat (2.8snap-rev14114M-20121025) precise; urgency=low
* Nightly_Builds
-- root <root@ubuntu> Thu, 25 Oct 2012 14:39:07 +0800
xcat (2.8snap-rev14114M-20121025) precise; urgency=low
* Nightly_Builds
-- root <root@ubuntu> Thu, 25 Oct 2012 14:12:06 +0800
xcat (2.8snap-rev14103M-20121024) precise; urgency=low
* Nightly_Builds
-- root <root@ubuntu> Wed, 24 Oct 2012 10:40:22 +0800
xcat (2.8snap-rev14094M-20121023) precise; urgency=low
* Nightly_Builds
-- root <root@ubuntu> Tue, 23 Oct 2012 18:21:32 +0800
xcat (2.8snap-rev14094M-20121023) precise; urgency=low
* Nightly_Builds
-- root <root@ubuntu> Tue, 23 Oct 2012 18:10:53 +0800
xcat (2.8snap-rev14094M-20121023) precise; urgency=low
* Nightly_Builds
-- root <root@ubuntu> Tue, 23 Oct 2012 18:09:04 +0800
xcat (2.8snap-rev14094M-20121023) precise; urgency=low
* Nightly_Builds
-- root <root@ubuntu> Tue, 23 Oct 2012 18:07:40 +0800
xcat (2.5.0-2) stable; urgency=low
* Initial Debian build

View File

@ -20,10 +20,21 @@ set -e
case "$1" in
configure)
#make dir for the current pid
mkdir -p /var/run/xcat
cp -f /opt/xcat/share/xcat/scripts/xHRM /install/postscripts/
. /etc/profile.d/xcat.sh
if [ -f /tmp/xCAT_upgrade ]
then
if [ -r "/tmp/xcat/installservice.pid" ]; then
mv /tmp/xcat/installservice.pid /var/run/xcat/installservice.pid
fi
if [ -r "/tmp/xcat/udpservice.pid" ]; then
mv /tmp/xcat/udpservice.pid /var/run/xcat/udpservice.pid
fi
if [ -r "/tmp/xcat/mainservice.pid" ]; then
mv /tmp/xcat/mainservice.pid /var/run/xcat/mainservice.pid
fi
xcatconfig -u
rm /tmp/xCAT_upgrade
else