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:
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user