compass-core/install/compass_web.sh
baigk 9c54aae1d0 modify the iso and ppa source
modify the iso and ppa source

Change-Id: I91b4a73e6f4aea69bd083acbabbfe1d2c849d8fd
Signed-off-by: baigk <baiguoku@huawei.com>
2015-12-29 16:42:39 +00:00

36 lines
828 B
Bash
Executable File

#!/bin/bash
# Move files to their respective locations
### BEGIN OF SCRIPT ###
echo "setup compass configuration"
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source $DIR/install.conf
if [ -f $DIR/env.conf ]; then
source $DIR/env.conf
else
echo "failed to load environment"
exit 1
fi
source $DIR/install_func.sh
mkdir -p /var/www/compass_web
rm -rf /var/www/compass_web/*
#sudo cp -rf $WEB_HOME/public/* /var/www/compass_web/
#sudo cp -rf $WEB_HOME/v2 /var/www/compass_web/
sudo mkdir -p /var/www/compass_web/v2.5
sudo cp -rf $WEB_HOME/v2.5/target/* /var/www/compass_web/v2.5/
sudo systemctl restart httpd.service
sleep 10
echo "Checking if httpd is running"
sudo systemctl status httpd.service
if [[ "$?" == "0" ]]; then
echo "httpd is running"
else
echo "httpd is not running"
exit 1
fi