From e95dfd78ed1015a5896de5cf2ec7955c6f3f54a5 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Thu, 20 Aug 2015 20:03:33 -0700 Subject: [PATCH] Fix production deployment script. (imported from commit 5b8398a0075dc297d3f86c65ce2ef43977e57ecb) --- puppet/zulip/manifests/base.pp | 5 ++--- scripts/lib/install | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/puppet/zulip/manifests/base.pp b/puppet/zulip/manifests/base.pp index bbf5275c68..ff80d665ad 100644 --- a/puppet/zulip/manifests/base.pp +++ b/puppet/zulip/manifests/base.pp @@ -22,13 +22,12 @@ class zulip::base { group { 'zulip': ensure => present, - gid => '1000', } + user { 'zulip': ensure => present, - uid => '1000', - gid => '1000', require => Group['zulip'], + gid => 'zulip', shell => '/bin/bash', home => '/home/zulip', managehome => true, diff --git a/scripts/lib/install b/scripts/lib/install index d833b216e2..12490ba93c 100755 --- a/scripts/lib/install +++ b/scripts/lib/install @@ -25,7 +25,7 @@ if [ -e "/etc/init.d/nginx" ]; then fi /root/zulip/scripts/setup/generate_enterprise_secrets.py -mv /root/zulip/zproject/local_settings_generated.py /etc/zulip/settings.py +mv /root/zulip/zproject/local_settings_template.py /etc/zulip/settings.py ln -nsf /etc/zulip/settings.py /root/zulip/zproject/local_settings.py /root/zulip/scripts/setup/configure-rabbitmq