#!/bin/bash

INSTALLABLES_SCRIPT_PATH=../installables

liteversion_script=$INSTALLABLES_SCRIPT_PATH/js/lite_version.js

sudo mongo localhost:27017 -u "neil" -p "parablu" --authenticationDatabase "admin" < $liteversion_script

sed -i "s|define('PORTAL_LIGHT_VERSION'.*|define('PORTAL_LIGHT_VERSION', true);|" /var/www/portal/app/Core/Config.php
