Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ARM Data Science and Integration
poster-api-wrapper
Commits
8aa971b3
Commit
8aa971b3
authored
Jul 14, 2021
by
Crow, Michael C
Browse files
added netstat check and moved db check into one
parent
0290c66e
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.sh
View file @
8aa971b3
...
...
@@ -3,10 +3,14 @@
if
!
`
which
-s
netstat
`
;
then
echo
"Unable to verify Tomcat"
echo
"Unable to verify a running database"
else
netstat
-an
|
grep
8080
>
/dev/null
\
&&
echo
"[verified] Tomcat"
\
||
echo
"Tomcat not found on port 8080 - this could cause the installation to fail"
netstat
-an
|
grep
3306
>
/dev/null
\
&&
echo
"MySQL database found on port 3306"
\
||
echo
"No database found running on port 3306 - this could cause the installation to fail"
fi
verify_installed
()
{
...
...
@@ -27,10 +31,6 @@ if [[ "$version" < "1.8" ]]; then
exit
1
fi
netstat
-an
|
grep
3306
>
/dev/null
\
&&
echo
"MySQL database found on port 3306"
\
||
echo
"No database found running on port 3306 - this could cause the installation to fail"
cd
app
npm
install
./node_modules/.bin/vue-cli-service build
--mode
production
...
...
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