##############################################################################################################
##    Script Name    : upgradePermissions.sh                                                                ##
##    Author         : Sanjay Khattar                                                                       ##
##    Created on     : 05/07/2013                                                                           ##
##    Usage          : ./upgradePermissions.sh                                                              ##
##    Purpose        : Script for upgrading CMS module permissions.                                         ##
##                                                                                                          ##
##############################################################################################################

#!/bin/sh

##
## Upgrade permissions for CMS modules.
##

ACTIVITY="upgrading module permissions"

logBeginMsg "$ACTIVITY"

homedir=$(pwd) 

if [ "$upgrade_from_cms_version" == "$CMS_VERSION_1_2" ] || [ "$upgrade_from_cms_version" == "$CMS_VERSION_1_5" ]; then
    ./upgradePermissionsToCMS2_0.sh
fi

cd $homedir

logDoneMsg "$ACTIVITY"
