Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Piotr Gawron
minerva-scripts
Commits
7f661b63
Commit
7f661b63
authored
Jun 25, 2018
by
Piotr Gawron
Browse files
Checking for special db for postrges database added
parent
6552a108
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/install.sh
View file @
7f661b63
#!/bin/bash
#check if db_partition is available
db_disk
=
"/dev/vdb"
if
[
-e
$db_disk
]
then
echo
"Disk for database found:
$db_disk
"
mounted
=
`
mount |grep
"
$db_disk
"
|wc
-l
`
if
[
"
$mounted
"
=
"0"
]
then
echo
"Disk not mounted. Aborting"
exit
1
else
echo
"Partition mounted."
mount |grep
"
$db_disk
"
fi
else
echo
"Partition for database not found:
$db_disk
"
fi
#install toole required for minerva installation
apt-get update
&&
apt-get
install
dirmngr apt-transport-https
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment