Make two more apache config files.

Change-Id: I53ec87d069d55c9a979dd46a4b226465c45a65a0
This commit is contained in:
Xicheng Chang 2016-07-11 14:03:48 -04:00
parent fb26ea6210
commit 96987b54ac
2 changed files with 10 additions and 8 deletions

View File

@ -26,7 +26,7 @@ sudo cp -rn /var/ansible/* /root/backup/ansible/
for i in `ls $ADAPTERS_HOME/ansible/ | grep "openstack_"`; do
mkdir -p /var/ansible/$i
# cp -rf $ADAPTERS_HOME/ansible/openstack/* /var/ansible/$i
cp -rf $ADAPTERS_HOME/ansible/openstack/* /var/ansible/$i
cp -rf $ADAPTERS_HOME/ansible/$i /var/ansible/
done

View File

@ -28,6 +28,8 @@ sudo rm -rf /var/www/compass/*
sudo cp -rf $COMPASSDIR/misc/apache/ods-server.conf /etc/httpd/conf.d/ods-server.conf
sudo cp -rf $COMPASSDIR/misc/apache/http_pip.conf /etc/httpd/conf.d/http_pip.conf
sudo cp -rf $COMPASSDIR/misc/apache/images.conf /etc/httpd/conf.d/images.conf
sudo cp -rf $COMPASSDIR/misc/apache/packages.conf /etc/httpd/conf.d/packages.conf
sudo cp -rf $COMPASSDIR/conf/* /etc/compass/
sudo cp -rf $COMPASSDIR/service/* /etc/init.d/
sudo cp -rf $COMPASSDIR/bin/*.py /opt/compass/bin/
@ -129,13 +131,13 @@ else
echo "compassed service is refreshed"
fi
# sudo systemctl status httpd.service
# if [[ "$?" != "0" ]]; then
# echo "httpd is not started"
# exit 1
# else
# echo "httpd has already started"
# fi
sudo systemctl status httpd.service
if [[ "$?" != "0" ]]; then
echo "httpd is not started"
exit 1
else
echo "httpd has already started"
fi
sudo systemctl status redis.service |grep running
if [[ "$?" != "0" ]]; then