Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
a9f1e66d
Commit
a9f1e66d
authored
15 years ago
by
Arno Schoenmakers
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1228: Fix typo and allow useage with -M option on development system
parent
4c972367
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/Deployment/data/PVSS/create_db_files
+6
-5
6 additions, 5 deletions
MAC/Deployment/data/PVSS/create_db_files
with
6 additions
and
5 deletions
MAC/Deployment/data/PVSS/create_db_files
+
6
−
5
View file @
a9f1e66d
...
@@ -47,7 +47,7 @@ SyntaxError()
...
@@ -47,7 +47,7 @@ SyntaxError()
echo
" Output dir is then /opt/pvss/dpdef (overrules -d)"
echo
" Output dir is then /opt/pvss/dpdef (overrules -d)"
echo
" -C CEP datapoints are created (overrules -s)"
echo
" -C CEP datapoints are created (overrules -s)"
echo
" -M MainCU datapoints are created (overrules -s)"
echo
" -M MainCU datapoints are created (overrules -s)"
echo
""
echo
"
Default option is -M
"
exit
1
exit
1
}
}
...
@@ -1207,14 +1207,14 @@ if [ "$DBTYPE" == "S" -a "$DBTYPENAME" == "LOCALHOST" ]; then
...
@@ -1207,14 +1207,14 @@ if [ "$DBTYPE" == "S" -a "$DBTYPENAME" == "LOCALHOST" ]; then
STNNAME
=
$DBTYPENAME
STNNAME
=
$DBTYPENAME
cd
$DESTDIR
cd
$DESTDIR
echo
"Making files for station
$STNNAME
in
$DESTDIR
"
echo
"Making files for station
$STNNAME
in
$DESTDIR
"
elif
[
"
$DBTYPE
"
==
"M"
]
;
then
elif
[
"
$DBTYPE
"
==
"M"
-a
"
$HOSTNAME
"
==
"MCU001"
]
;
then
configdir
=
"/opt/lofar/etc/"
configdir
=
"/opt/lofar/etc/"
dpdefdir
=
"/opt/pvss/dpdef/"
dpdefdir
=
"/opt/pvss/dpdef/"
DESTDIR
=
$dpdefdir
DESTDIR
=
$dpdefdir
STNNAME
=
$DBTYPENAME
STNNAME
=
$DBTYPENAME
cd
$DESTDIR
cd
$DESTDIR
echo
"Making files for
$STNNAME
in
$DESTDIR
"
echo
"Making files for
$STNNAME
in
$DESTDIR
"
elif
[
"
$DBTYPE
"
==
"C"
]
;
then
elif
[
"
$DBTYPE
"
==
"C"
-a
"
$HOSTNAME
"
==
"CCU001"
]
;
then
configdir
=
"/opt/lofar/etc/"
configdir
=
"/opt/lofar/etc/"
dpdefdir
=
"/opt/pvss/dpdef/"
dpdefdir
=
"/opt/pvss/dpdef/"
DESTDIR
=
$dpdefdir
DESTDIR
=
$dpdefdir
...
@@ -1268,8 +1268,9 @@ create_dp_file ${INPUTFILE} ${DBTYPE}
...
@@ -1268,8 +1268,9 @@ create_dp_file ${INPUTFILE} ${DBTYPE}
cat
${
TMP_FILE
}
>>
${
DESTDIR
}
/
${
DPT_FILE
}
cat
${
TMP_FILE
}
>>
${
DESTDIR
}
/
${
DPT_FILE
}
rm
-f
${
TMP_FILE
}
rm
-f
${
TMP_FILE
}
# Creating the c++ header file is for development, only
# Creating the c++ header file is for development hosts, only; in that case
if
[
"
${
DBTYPE
}
"
!=
"S"
-a
"
${
DBTYPE
}
"
!=
"M"
-a
"
${
DBTYPE
}
"
!=
"C"
]
;
then
# the $dpdefdir is an empty string
if
[
"
${
dpdefdir
}
"
==
""
]
;
then
(
(
echo
-n
"// This file was generated by
$(
basename
$0
)
${
VERSION
}
on "
;
date
echo
-n
"// This file was generated by
$(
basename
$0
)
${
VERSION
}
on "
;
date
echo
""
echo
""
...
...
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