mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-22 11:10:24 +00:00
Fix indent and code style
This commit is contained in:
@@ -20,12 +20,12 @@ 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.tmp ]
|
||||
then
|
||||
# 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.tmp ]
|
||||
then
|
||||
if [ -r "/tmp/xcat/installservice.pid" ]; then
|
||||
mv /tmp/xcat/installservice.pid /var/run/xcat/installservice.pid
|
||||
fi
|
||||
@@ -35,16 +35,15 @@ case "$1" in
|
||||
if [ -r "/tmp/xcat/mainservice.pid" ]; then
|
||||
mv /tmp/xcat/mainservice.pid /var/run/xcat/mainservice.pid
|
||||
fi
|
||||
xcatconfig -u
|
||||
rm /tmp/xCAT_upgrade.tmp
|
||||
else
|
||||
xcatconfig -i -d -s
|
||||
fi
|
||||
xcatconfig -u
|
||||
rm /tmp/xCAT_upgrade.tmp
|
||||
else
|
||||
xcatconfig -i -d -s
|
||||
fi
|
||||
|
||||
# [ -e /etc/apache2/conf-enabled/xcat.conf ] && rm /etc/apache2/conf-enabled/xcat.conf
|
||||
ln -s -f /etc/apache2/conf-available/xcat.conf.apach24 /etc/apache2/conf-enabled/xcat.conf
|
||||
ln -s -f /etc/apache2/conf-available/xcat.conf.apach24 /etc/apache2/conf-enabled/xcat.conf
|
||||
|
||||
/etc/init.d/apache2 restart
|
||||
/etc/init.d/apache2 restart
|
||||
|
||||
# Let rsyslogd perform close of any open files
|
||||
if [ -e /var/run/rsyslogd.pid ]; then
|
||||
|
Reference in New Issue
Block a user