Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
c716fd27
Commit
c716fd27
authored
Jul 16, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refuse to start if the system has less than 768 MB of RAM, except when testing within Vagrant
parent
4e5b5f28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
start.sh
setup/start.sh
+13
-0
No files found.
setup/start.sh
View file @
c716fd27
...
@@ -16,6 +16,7 @@ fi
...
@@ -16,6 +16,7 @@ fi
# Check system setup.
# Check system setup.
# Check that we are running on Ubuntu 14.04 LTS.
if
[
"
`
lsb_release
-d
|
sed
's/.*:\s*//'
`
"
!=
"Ubuntu 14.04 LTS"
]
;
then
if
[
"
`
lsb_release
-d
|
sed
's/.*:\s*//'
`
"
!=
"Ubuntu 14.04 LTS"
]
;
then
echo
echo
echo
"Mail-in-a-Box only supports being installed on Ubuntu 14.04, sorry. You are running:"
echo
"Mail-in-a-Box only supports being installed on Ubuntu 14.04, sorry. You are running:"
...
@@ -26,6 +27,18 @@ if [ "`lsb_release -d | sed 's/.*:\s*//'`" != "Ubuntu 14.04 LTS" ]; then
...
@@ -26,6 +27,18 @@ if [ "`lsb_release -d | sed 's/.*:\s*//'`" != "Ubuntu 14.04 LTS" ]; then
exit
exit
fi
fi
# Check that we have enough memory. Skip the check if we appear to be
# running inside of Vagrant, because that's really just for testing.
TOTAL_PHYSICAL_MEM
=
$(
free
-m
|
grep
^Mem: |
sed
"s/^Mem: *
\(
[0-9]*
\)
.*/
\1
/"
)
if
[
$TOTAL_PHYSICAL_MEM
-lt
768
]
;
then
if
[
!
-d
/vagrant
]
;
then
echo
echo
"Your Mail-in-a-Box needs more than
$TOTAL_PHYSICAL_MEM
MB RAM."
echo
"Please provision a machine with at least 768 MB, 1 GB recommended."
exit
fi
fi
# Recall the last settings used if we're running this a second time.
# Recall the last settings used if we're running this a second time.
if
[
-f
/etc/mailinabox.conf
]
;
then
if
[
-f
/etc/mailinabox.conf
]
;
then
# Run any system migrations before proceeding. Since this is a second run,
# Run any system migrations before proceeding. Since this is a second run,
...
...
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