#
# Add SILVERPEAS_DATA_WEB as a new deployments location for JBoss
#

echo Add ${SILVERPEAS_DATA_WEB} as a new deployments location

# If already set, remove it so that the path of the Silverpeas data Web location can be updated
if (outcome == success) of /subsystem=deployment-scanner/scanner=silverpeas-data-web:read-resource
  /subsystem=deployment-scanner/scanner=silverpeas-data-web:remove
end-if

/subsystem=deployment-scanner/scanner=silverpeas-data-web:add(path=${SILVERPEAS_DATA_WEB})
