############################################################################## # Copyright (c) Members of the EGEE Collaboration. 2004. # See http://www.eu-egee.org/partners/ for details on the copyright # holders. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS # OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ############################################################################## # # NAME : config_newvo_cream # # DESCRIPTION : This function enables a new VO on a CREAM node # # AUTHORS : grid-release@lists.infn.it # # NOTES : # # YAIM MODULE: ig-yaim # ############################################################################## config_newvo_cream () { FUNCTIONS=" config_vomsdir config_vomses config_users config_cream_tomcat_user config_vomsmap config_nfs_sw_dir_server config_gip_only config_cream_gip config_gip_scheduler_plugin " for func in $FUNCTIONS; do yaimlog DEBUG "Executing $func for VO configuration..." run check ${func}_check 2>>/dev/null myret=$? if [ ${myret} -eq 1 ] ; then yaimlog ERROR "Error during running check functions." yaimlog ERROR "Please define your missing variables! Exiting." exit 1 fi run ${func}_setenv 2>> /dev/null run ${func} myret=$? if [ ${myret} -ne 0 ]; then echo_failure yaimlog ERROR "Error during the configuration! Exiting." exit 1 fi done return 0 }