forked from NOAA-EMC/GSI-Monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add transfer for regional website installation Feature/rgn xfer 162 (N…
…OAA-EMC#165) * Ref NOAA-EMC#157 Add comparison capability to regional web sites. * Ref NOAA-EMC#162 Add transfer_html.sh and plug it into the install scripts.
- Loading branch information
1 parent
2e32094
commit b1db7ee
Showing
5 changed files
with
74 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/bash | ||
|
||
echo; echo " -----------------------------"; echo | ||
|
||
echo "All html and web support files have been created."; echo | ||
echo "Do you wish to transfer these files to the webserver now?"; echo | ||
|
||
echo -n " Enter YES to transfer now, any other input to decline. > " | ||
read text | ||
short=`echo $text | cut -c1` | ||
|
||
if [[ $short = "Y" || $short = "y" ]]; then | ||
|
||
echo; echo | ||
echo "Submitting transfer job" | ||
|
||
if [[ ! -d ${R_LOGDIR} ]]; then | ||
mkdir -p ${R_LOGDIR} | ||
fi | ||
|
||
transfer_log=${R_LOGDIR}/Transfer_${RADMON_SUFFIX}.log | ||
if [[ -e ${transfer_log} ]]; then | ||
rm ${transfer_log} | ||
fi | ||
|
||
transfer_err=${R_LOGDIR}/Transfer_${RADMON_SUFFIX}.err | ||
if [[ -e ${transfer_err} ]]; then | ||
rm ${transfer_err} | ||
fi | ||
|
||
transfer_queue=dev_transfer | ||
jobname=transfer_${RADMON_SUFFIX} | ||
|
||
if [[ $RAD_AREA == 'glb' ]]; then | ||
export WEBDIR=${WEBDIR}/${RADMON_SUFFIX} | ||
else | ||
export WEBDIR=${WEBDIR}/regional/${RADMON_SUFFIX} | ||
fi | ||
|
||
cmdfile="./transfer_cmd" | ||
echo "${IG_SCRIPTS}/transfer.sh" >$cmdfile | ||
chmod 755 $cmdfile | ||
|
||
$SUB -q $transfer_queue -A $ACCOUNT -o ${transfer_log} -e ${transfer_err} \ | ||
-v "INCLUDE_PNGS=1, WEBSVR=${WEBSVR}, WEBUSER=${WEBUSER}, \ | ||
WEBDIR=${WEBDIR}, TANKimg=${TANKimg}" \ | ||
-l select=1:mem=500M -l walltime=30:00 -N ${jobname} ${cmdfile} | ||
|
||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters