Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
AossTower
Commits
eceba44f
Unverified
Commit
eceba44f
authored
8 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Move environment variable to shared metobs_config.sh script
parent
22e717e5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/archive_tower.sh
+0
-5
0 additions, 5 deletions
scripts/archive_tower.sh
scripts/metobs_config.sh
+4
-0
4 additions, 0 deletions
scripts/metobs_config.sh
with
4 additions
and
5 deletions
scripts/archive_tower.sh
+
0
−
5
View file @
eceba44f
...
@@ -8,11 +8,6 @@ SCRIPT_NAME=${SCRIPT_NAME/.sh/}
...
@@ -8,11 +8,6 @@ SCRIPT_NAME=${SCRIPT_NAME/.sh/}
# Get environment variables and common functions
# Get environment variables and common functions
source
$SCRIPT_HOME
/metobs_config.sh
source
$SCRIPT_HOME
/metobs_config.sh
# Assume we are in /data1/software/<site>-<inst>/repos/git/<Site><Inst>/scripts
# and need to get to /data1/software/<site-<inst>
ENV
=
`
readlink
-f
../../../../
`
LOGDIR
=
$ENV
/logs
DATE
=
$1
DATE
=
$1
if
[
-z
"
$DATE
"
]
;
then
if
[
-z
"
$DATE
"
]
;
then
DATE
=
`
date
+%Y%m%d
`
DATE
=
`
date
+%Y%m%d
`
...
...
This diff is collapsed.
Click to expand it.
scripts/metobs_config.sh
+
4
−
0
View file @
eceba44f
...
@@ -7,6 +7,10 @@ export TOWER_INCOMING_DIR=/mnt/inst-data/incoming/aoss/tower
...
@@ -7,6 +7,10 @@ export TOWER_INCOMING_DIR=/mnt/inst-data/incoming/aoss/tower
export
TOWER_PRAW_DIR
=
/mnt/inst-data/raw/aoss/tower
export
TOWER_PRAW_DIR
=
/mnt/inst-data/raw/aoss/tower
# Where generated products go
# Where generated products go
export
TOWER_CACHE_DIR
=
/mnt/inst-data/cache/aoss/tower
export
TOWER_CACHE_DIR
=
/mnt/inst-data/cache/aoss/tower
# Python environment to use and where scripts are location
export
ENV
=
/data1/software/aoss-tower3
# Directory where logs will be stored
export
LOGDIR
=
$ENV
/logs
log_info
()
{
log_info
()
{
echo
"INFO:
$*
"
&>>
$logfile
echo
"INFO:
$*
"
&>>
$logfile
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment