X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=BUILD.sh;h=c9192060d4d2034c41b45bcadd5a61e3301fca2d;hb=839b5135c3f72f7051b186cdf97ead55711f25a5;hp=b0c6d27b10a634498a377b927ee7f78a77cf9a05;hpb=e5ce4ffee708ce25521d0a95280c25904ab94ddd;p=osm%2FSO.git diff --git a/BUILD.sh b/BUILD.sh index b0c6d27b..c9192060 100755 --- a/BUILD.sh +++ b/BUILD.sh @@ -126,6 +126,17 @@ fi ############################################################################### # Main block +# Disable apt-daily.service and apt-daily.timer + +DAILY_TIMER='apt-daily.timer' +DAILY_SERVICE='apt-daily.service' +if [ $(systemctl is-active $DAILY_TIMER) = "active" ] +then + systemctl stop $DAILY_TIMER + systemctl disable $DAILY_TIMER + systemctl disable $DAILY_SERVICE +fi + # must be run from the top of a workspace cd $(dirname $0) @@ -158,13 +169,14 @@ fi # and install of the packages required to build and run # this module if $runMkcontainer; then + sudo apt-get install -y libxml2-dev libxslt-dev sudo /usr/rift/container_tools/mkcontainer --modes build --modes ext --repo ${PLATFORM_REPOSITORY} fi if [[ $PLATFORM == ub16 ]]; then # install the RIFT platform code: - sudo apt-get install -y rw.toolchain-rwbase=${PLATFORM_VERSION} \ + sudo apt-get install -y --allow-downgrades rw.toolchain-rwbase=${PLATFORM_VERSION} \ rw.toolchain-rwtoolchain=${PLATFORM_VERSION} \ rw.core.mgmt-mgmt=${PLATFORM_VERSION} \ rw.core.util-util=${PLATFORM_VERSION} \ @@ -269,8 +281,6 @@ if [[ $UIPathToBuild ]]; then sudo make -C $UIPathToBuild install fi -echo "To run SO with UI please run:" -echo 'sudo -H /usr/rift/rift-shell -r -i /usr/rift -a /usr/rift/.artifacts -- ./demos/launchpad.py --use-xml-mode' -echo -echo "To run SO without UI please run:" -echo 'sudo -H /usr/rift/rift-shell -r -i /usr/rift -a /usr/rift/.artifacts -- ./demos/launchpad.py --use-xml-mode --no-ui' +echo "Creating Service ...." +sudo $(dirname $0)/create_launchpad_service +