UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
G
GrammaTech
CodeSonar
codesonar-hub
Commits
ca7787ef
Commit
ca7787ef
authored
Apr 01, 2021
by
Mark Hermeling
Browse files
Change from hard-coded default password to generated default passwd
parent
fbb32b5e
Pipeline
#207687
canceled with stages
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
scripts/codesonar-exec.sh
scripts/codesonar-exec.sh
+11
-4
No files found.
scripts/codesonar-exec.sh
View file @
ca7787ef
#!/bin/sh
#!/bin/sh
echo
"Starting hub in /home/codesonar/hub"
if
test
-f
"/home/codesonar/hub/hubpwd"
;
then
echo
-e
"
$1
\n
$1
\n
"
| /opt/codesonar/codesonar/bin/codesonar hub-start /home/codesonar/hub 0.0.0.0:7340
echo
"Starting hub in /home/codesonar/hub with existing pwd"
echo
"Hub password is
$1
"
/opt/codesonar/codesonar/bin/codesonar hub-start /home/codesonar/hub 0.0.0.0:7340
else
HUB_DEFAULT_PWD
=
$(
date
+%s |
base64
|
head
-c
32
)
echo
"
${
HUB_DEFAULT_PWD
}
"
>
/home/codesonar/hub/hubpwd
chmod
600 /home/codesonar/hub/hubpwd
echo
"Starting hub with new hub password:
${
HUB_DEFAULT_PWD
}
"
echo
-e
"
${
HUB_DEFAULT_PWD
}
\n
${
HUB_DEFAULT_PWD
}
\n
"
| /opt/codesonar/codesonar/bin/codesonar hub-start /home/codesonar/hub 0.0.0.0:7340
fi
echo
"Hub started..."
echo
"Hub started..."
while
[
1
]
while
[
1
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment