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
fc5c1986
Commit
fc5c1986
authored
Feb 28, 2016
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #728 from yodax/noexec
Add check to preflight for exec on tmp
parents
2be373fd
a7e60af9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
preflight.sh
setup/preflight.sh
+7
-0
start.sh
setup/start.sh
+2
-1
No files found.
setup/preflight.sh
View file @
fc5c1986
...
...
@@ -33,3 +33,10 @@ if [ ! -d /vagrant ]; then
exit
fi
fi
# Check that tempfs is mounted with exec
MOUNTED_TMP_AS_NO_EXEC
=
$(
grep
"/tmp.*noexec"
/proc/mounts
)
if
[
-n
"
$MOUNTED_TMP_AS_NO_EXEC
"
]
;
then
echo
"Mail-in-a-Box has to have exec rights on /tmp, please mount /tmp with exec"
exit
fi
setup/start.sh
View file @
fc5c1986
...
...
@@ -5,7 +5,8 @@
source
setup/functions.sh
# load our functions
# Check system setup: Are we running as root on Ubuntu 14.04 on a
# machine with enough memory? If not, this shows an error and exits.
# machine with enough memory? Is /tmp mounted with exec.
# If not, this shows an error and exits.
source
setup/preflight.sh
# Ensure Python reads/writes files in UTF-8. If the machine
...
...
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