Make sure Vagrant works with SELinux enabled

Remount SELinux filesystem if host is running SELinux.
This commit is contained in:
inytar 2016-11-21 18:48:00 -05:00 committed by Tim Abbott
parent 73fb9c6f66
commit 5ad831fdf0
1 changed files with 5 additions and 0 deletions

5
Vagrantfile vendored
View File

@ -80,6 +80,11 @@ $provision_script = <<SCRIPT
set -x set -x
set -e set -e
set -o pipefail set -o pipefail
# If the host is running SELinux remount the /sys/fs/selinux directory as read only,
# needed for apt-get to work.
if [ -d "/sys/fs/selinux" ]; then
sudo mount -o remount,ro /sys/fs/selinux
fi
ln -nsf /srv/zulip ~/zulip ln -nsf /srv/zulip ~/zulip
/usr/bin/python /srv/zulip/tools/provision.py | sudo tee -a /var/log/zulip_provision.log /usr/bin/python /srv/zulip/tools/provision.py | sudo tee -a /var/log/zulip_provision.log
SCRIPT SCRIPT