Changes in / [b0ecdb2:f127aee] in flex_extract.git


Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/Mods/checks.py

    r50f9ca6 r0f89116  
    479479    '''
    480480    if queue in _config.QUEUES_LIST and \
    481             (not ecuid or not ecgid):
    482         raise ValueError('\nEnvironment variables ECUID '
     481            (not gateway or not destination or
     482             not ecuid or not ecgid):
     483        raise ValueError('\nEnvironment variables GATEWAY, DESTINATION, ECUID '
    483484                         'and ECGID were not set properly! \n '
    484485                         'Please check for existence of file "ECMWF_ENV" '
    485486                         'in the run directory!')
    486     elif queue in _config.QUEUES_LIST and \
    487              (not gateway or not destination):
    488         print('WARNING: Parameters GATEWAY and DESTINATION were '
    489               'not properly set for working on ECMWF server. \n'
    490               'There will be no transfer of output files to the '
    491               'local gateway server possible!')
    492487    return
    493488
  • Source/Python/install.py

    r50f9ca6 r0f89116  
    285285
    286286    if c.install_target and c.install_target != 'local':
    287         if not c.ecgid or not c.ecuid:
    288             print('Please enter your ECMWF user id and group id '
    289                   ' with command line options --ecuid --ecgid')
     287        if not c.ecgid or not c.ecuid or \
     288           not c.gateway or not c.destination:
     289            print('Please enter your ECMWF user id and group id as well ' +
     290                  'as the \nname of the local gateway and the ectrans ' +
     291                  'destination ')
     292            print('with command line options --ecuid --ecgid \
     293                   --gateway --destination')
    290294            print('Try "' + sys.argv[0].split('/')[-1] + \
    291295                  ' -h" to print usage information')
    292             print('Please consult ecaccess documentation or ECMWF user '
    293                   'support for further details.\n')
     296            print('Please consult ecaccess documentation or ECMWF user \
     297                   support for further details')
    294298            sys.exit(1)
    295         if not c.gateway or not c.destination:
    296             print('WARNING: Parameters GATEWAY and DESTINATION were '
    297                   'not properly set for working on ECMWF server. \n'
    298                   'There will be no transfer of output files to the '
    299                   'local gateway server possible!')
     299
    300300        if not c.installdir:
    301301            c.installdir = '${HOME}'
  • setup.sh

    r50f9ca6 rf7b9666  
    3131ECGID='<groupID>'
    3232GATEWAY='<gatewayname>'
    33 DESTINATION='<username>@genericSftp'
     33DESTINATION='<name>@genericSftp'
    3434INSTALLDIR=None
    3535JOB_TEMPLATE=''
     
    5959if [ "$TARGET" == "ecgate" ] || [ "$TARGET" == "cca" ]; then
    6060  # check if necessary Parameters are set
    61   if [ -z "$ECUID" ] || [ -z "$ECGID" ] || [ "$ECUID" == "<username>" ] || [ "$ECGID" == "<groupID>" ] ; then
    62     echo "ERROR: At least one of the following parameters are not properly set: ECUID or ECGID!"
     61  if [ -z "$ECUID" ] || [ -z "$ECGID" ] || [ -z "$GATEWAY" ] || [ -z "$DESTINATION" ]; then
     62    echo "ERROR: At least one of the following parameters are not set: ECUID, ECGID, GATEWAY, DESTINATION!"
    6363    echo "EXIT WITH ERROR"
    6464    exit
    6565  else
    6666    parameterlist+=" --ecuid=$ECUID --ecgid=$ECGID --gateway=$GATEWAY --destination=$DESTINATION"
    67   fi
    68   if [ -z "$GATEWAY" ] || [ -z "$DESTINATION" ] || [ "$GATEWAY" == "<gatewayname>" ] || [ "$DESTINATION" == "<username>@genericSftp" ] ; then
    69     echo "WARNING: Not setting parameters GATEWAY and DESTINATION means there will be no file transfer to local gateway server."
    7067  fi
    7168fi
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG