Changeset b0ecdb2 in flex_extract.git
- Timestamp:
- Mar 8, 2020, 2:49:02 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- a54f79b
- Parents:
- f127aee (diff), 50f9ca6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Python/Mods/checks.py
r0f89116 r50f9ca6 479 479 ''' 480 480 if queue in _config.QUEUES_LIST and \ 481 (not gateway or not destination or 482 not ecuid or not ecgid): 483 raise ValueError('\nEnvironment variables GATEWAY, DESTINATION, ECUID ' 481 (not ecuid or not ecgid): 482 raise ValueError('\nEnvironment variables ECUID ' 484 483 'and ECGID were not set properly! \n ' 485 484 'Please check for existence of file "ECMWF_ENV" ' 486 485 '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!') 487 492 return 488 493 -
Source/Python/install.py
r0f89116 r50f9ca6 285 285 286 286 if c.install_target and c.install_target != 'local': 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') 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') 294 290 print('Try "' + sys.argv[0].split('/')[-1] + \ 295 291 ' -h" to print usage information') 296 print('Please consult ecaccess documentation or ECMWF user \297 support for further details')292 print('Please consult ecaccess documentation or ECMWF user ' 293 'support for further details.\n') 298 294 sys.exit(1) 299 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!') 300 300 if not c.installdir: 301 301 c.installdir = '${HOME}' -
setup.sh
rf7b9666 r50f9ca6 31 31 ECGID='<groupID>' 32 32 GATEWAY='<gatewayname>' 33 DESTINATION='< name>@genericSftp'33 DESTINATION='<username>@genericSftp' 34 34 INSTALLDIR=None 35 35 JOB_TEMPLATE='' … … 59 59 if [ "$TARGET" == "ecgate" ] || [ "$TARGET" == "cca" ]; then 60 60 # check if necessary Parameters are set 61 if [ -z "$ECUID" ] || [ -z "$ECGID" ] || [ -z "$GATEWAY" ] || [ -z "$DESTINATION" ]; then62 echo "ERROR: At least one of the following parameters are not set: ECUID, ECGID, GATEWAY, DESTINATION!"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!" 63 63 echo "EXIT WITH ERROR" 64 64 exit 65 65 else 66 66 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." 67 70 fi 68 71 fi
Note: See TracChangeset
for help on using the changeset viewer.