provision: Add cd /srv/zulip to .bashrc only if /srv/zulip exists.

This commit is contained in:
Vishnu Ks 2019-06-10 17:06:44 +05:30 committed by Tim Abbott
parent d703e3638e
commit fdcae3b0b7
1 changed files with 2 additions and 1 deletions

View File

@ -275,7 +275,8 @@ def setup_shell_profile(shell_profile):
source_activate_command = "source " + os.path.join(VENV_PATH, "bin", "activate")
write_command(source_activate_command)
write_command('cd /srv/zulip')
if os.path.exists('/srv/zulip'):
write_command('cd /srv/zulip')
def install_system_deps():
# type: () -> None