Changes in / [b0ecdb2:f127aee] in flex_extract.git
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Python/Mods/checks.py
r50f9ca6 r0f89116 479 479 ''' 480 480 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 ' 483 484 'and ECGID were not set properly! \n ' 484 485 'Please check for existence of file "ECMWF_ENV" ' 485 486 '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!')492 487 return 493 488 -
Source/Python/install.py
r50f9ca6 r0f89116 285 285 286 286 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') 290 294 print('Try "' + sys.argv[0].split('/')[-1] + \ 291 295 ' -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') 294 298 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 300 300 if not c.installdir: 301 301 c.installdir = '${HOME}' -
setup.sh
r50f9ca6 rf7b9666 31 31 ECGID='<groupID>' 32 32 GATEWAY='<gatewayname>' 33 DESTINATION='< username>@genericSftp'33 DESTINATION='<name>@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" ] || [ "$ECUID" == "<username>" ] || [ "$ECGID" == "<groupID>" ]; then62 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!" 63 63 echo "EXIT WITH ERROR" 64 64 exit 65 65 else 66 66 parameterlist+=" --ecuid=$ECUID --ecgid=$ECGID --gateway=$GATEWAY --destination=$DESTINATION" 67 fi68 if [ -z "$GATEWAY" ] || [ -z "$DESTINATION" ] || [ "$GATEWAY" == "<gatewayname>" ] || [ "$DESTINATION" == "<username>@genericSftp" ] ; then69 echo "WARNING: Not setting parameters GATEWAY and DESTINATION means there will be no file transfer to local gateway server."70 67 fi 71 68 fi
Note: See TracChangeset
for help on using the changeset viewer.