vagrant: Replace guest motd with a custom Zulip motd.

Edits Vagrantfile to set custom motd message at /etc/motd and remove
all files under /etc/update-motd.d.

Fixes #7271.
This commit is contained in:
Aayush Agrawal 2018-02-18 16:15:19 +05:30 committed by Tim Abbott
parent 354d552a10
commit 65eeda7c9a
1 changed files with 14 additions and 0 deletions

14
Vagrantfile vendored
View File

@ -156,6 +156,20 @@ set -o pipefail
# something that we don't want to happen when running provision in a # something that we don't want to happen when running provision in a
# development environment not using Vagrant. # development environment not using Vagrant.
# Set the MOTD on the system to have Zulip instructions
sudo rm -f /etc/update-motd.d/*
sudo bash -c 'cat << EndOfMessage > /etc/motd
Welcome to the Zulip development environment! Popular commands:
* tools/provision - Update the development environment
* tools/run-dev.py - Run the development server
* tools/lint - Run the linter (quick and catches many problmes)
* tools/test-* - Run tests (use --help to learn about options)
Read https://zulip.readthedocs.io/en/latest/testing.html to learn
how to run individual test suites so that you can get a fast debug cycle.
EndOfMessage'
# If the host is running SELinux remount the /sys/fs/selinux directory as read only, # If the host is running SELinux remount the /sys/fs/selinux directory as read only,
# needed for apt-get to work. # needed for apt-get to work.
if [ -d "/sys/fs/selinux" ]; then if [ -d "/sys/fs/selinux" ]; then