#
# profile
#
# ssm profile
#
# This script is executed by the system and user (master) domains.

# GPL--start
# This file is part of ssm (Simple Software Manager)
# Copyright (C) 2005-2010 Environment/Environnement Canada
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
# GPL--end

#
# main
#

if [ "${SSM_DOMAIN_HOME}" != "" ]; then
    scriptPath="${SSM_DOMAIN_HOME}/lib/ssm.d/ssm_generateenvconfig.sh"

    cmds=`"${scriptPath}" prepend sh "${SSM_DOMAIN_HOME}"`
    eval "${cmds}"
fi
