mirror of https://github.com/zulip/zulip.git
Make sure Vagrant works with SELinux enabled
Remount SELinux filesystem if host is running SELinux.
This commit is contained in:
parent
73fb9c6f66
commit
5ad831fdf0
|
@ -80,6 +80,11 @@ $provision_script = <<SCRIPT
|
|||
set -x
|
||||
set -e
|
||||
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
|
||||
/usr/bin/python /srv/zulip/tools/provision.py | sudo tee -a /var/log/zulip_provision.log
|
||||
SCRIPT
|
||||
|
|
Loading…
Reference in New Issue