2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-20 05:00:34 +00:00

Leave a log file there when xCAT upgrade in case to debug issue while upgrading (#4389)

This commit is contained in:
Bin Xu
2017-11-29 02:37:35 -06:00
committed by yangsong
parent db20025558
commit ff5f21e283
2 changed files with 6 additions and 2 deletions

View File

@ -35,7 +35,9 @@ case "$1" in
if [ -r "/tmp/xcat/mainservice.pid" ]; then
mv /tmp/xcat/mainservice.pid /var/run/xcat/mainservice.pid
fi
xcatconfig -u
mkdir -p /var/log/xcat
date >> /var/log/xcat/upgrade.log
xcatconfig -u -V >> /var/log/xcat/upgrade.log
rm /tmp/xCAT_upgrade.tmp
else
xcatconfig -i -d -s

View File

@ -249,7 +249,9 @@ if [ -r "/tmp/xcat/mainservice.pid" ]; then
mv /tmp/xcat/mainservice.pid /var/run/xcat/mainservice.pid
fi
$RPM_INSTALL_PREFIX0/sbin/xcatconfig -u
mkdir -p /var/log/xcat
date >> /var/log/xcat/upgrade.log
$RPM_INSTALL_PREFIX0/sbin/xcatconfig -u -V >> /var/log/xcat/upgrade.log
fi
exit 0