| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # makalinuxctn Version 0.1 |
| 3 | # This makes a ctn after all is built |
| 4 | |
| 5 | THISHEREDIRECTORY=$PWD |
| 6 | |
| 7 | echoscip-shell system . . echo. Checking For disk space: |
| 8 | /bin/dfscip-shell filesystem . . `/bin/df`. . | awkscip-shell system . . awk. '{ if (NR==2) printf ("\t%.1f MBytes are avaialble\n", $4) }' |
| 9 | DISK_AMOUNT=`/bin/dfscip-shell filesystem . . `/bin/df`. . | awkscip-shell system . . awk. '{ if (NR==2) print $4 }'` |
| 10 | if [scip-shell system . . `[`. $DISK_AMOUNT -lt 90000 ]; then |
| 11 | echoscip-shell system . . echo. Not enough Disk space |
| 12 | exit 1 |
| 13 | else |
| 14 | /bin/echoscip-shell filesystem . . `/bin/echo`. -n "\tThere is enough disk space for the installation\n\n" |
| 15 | fi |
| 16 | |
| 17 | /bin/echoscip-shell filesystem . . `/bin/echo`. "Now configuring the Central Test Node system \n\n" |
| 18 | |
| 19 | source .linux.configurescip-shell source . . `.linux.configure`. |
| 20 | if [scip-shell system . . `[`. $? -ne 0 ]; then |
| 21 | echoscip-shell system . . echo. "someting went wrong in the .linux.configure" |
| 22 | exit 1 |
| 23 | fi |
| 24 | |
| 25 | /bin/echoscip-shell filesystem . . `/bin/echo`. "Now Entering the $THISHEREDIRECTORY/facilities directory" |
| 26 | /bin/echoscip-shell filesystem . . `/bin/echo`. "to make the Central Test Node facilities\n\n" |
| 27 | cd $THISHEREDIRECTORY/facilities |
| 28 | #make |
| 29 | makescip-shell system . . make. install |
| 30 | |
| 31 | /bin/echoscip-shell filesystem . . `/bin/echo`. "Now Entering the $THISHEREDIRECTORY/apps directory" |
| 32 | /bin/echoscip-shell filesystem . . `/bin/echo`. "to make the Central Test Node applications\n\n" |
| 33 | cd $THISHEREDIRECTORY/apps |
| 34 | #make |
| 35 | makescip-shell system . . make. install |
| 36 | |
| 37 | /bin/echoscip-shell filesystem . . `/bin/echo`. "\n\n\tCTN Completed\n\n" |
| 38 | |
| 39 | /bin/echoscip-shell filesystem . . `/bin/echo`. "Now become root and type ${MSQL_ROOT}/bin/msqld & \n\n" |
| 40 | |
| 41 | /bin/echoscip-shell filesystem . . `/bin/echo`. Then become root or whoever is the DICOM user and |
| 42 | /bin/echoscip-shell filesystem . . `/bin/echo`. "type $DICOM_ROOT/cfg_scripts/msql/CreateDB CTNControl" |
| 43 | /bin/echoscip-shell filesystem . . `/bin/echo`. "to create the Control data base.\n\n" |
| 44 | |
| 45 | /bin/echoscip-shell filesystem . . `/bin/echo`. "type $DICOM_ROOT/cfg_scripts/msql/CreateTables Control CTNControl" |
| 46 | /bin/echoscip-shell filesystem . . `/bin/echo`. "to create the Control data base tables \n\n" |
| 47 | |
| 48 | /bin/echoscip-shell filesystem . . `/bin/echo`. "I recommend going to $DICOM_ROOT/cfg_scripts/other copying" |
| 49 | /bin/echoscip-shell filesystem . . `/bin/echo`. "example_load to your_load and then typing" |
| 50 | /bin/echoscip-shell filesystem . . `/bin/echo`. "$DICOM_ROOT/bin/linux.msql/load_control < your_load " |
| 51 | echoscip-shell system . . echo. To get your DICOM permissions up and usable |
| 52 | echoscip-shell system . . echo. have a pleasant day |
| 53 |