mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
Run the following commands as root before deploying this branch: # /root/zulip/tools/migrate-server-config # rm /etc/zulip/machinetype /etc/zulip/server /etc/zulip/local /etc/humbug-machinetype /etc/humbug-server /etc/humbug-local (imported from commit aa7dcc50d2f4792ce33834f14761e76512fca252)
38 lines
819 B
Bash
38 lines
819 B
Bash
#!/bin/bash -xe
|
|
|
|
# Assumes we've already been untarred
|
|
|
|
apt-get update
|
|
apt-get -y dist-upgrade
|
|
apt-get install -y puppet git
|
|
cp -a /root/zulip/puppet/zulip/files/puppet.conf /etc/puppet/
|
|
|
|
ssh $SSH_OPTS "$server" -t -i "$amazon_key_file" -lroot <<EOF
|
|
cp -a /root/zulip/puppet/zulip/files/puppet.conf /etc/puppet/
|
|
|
|
mkdir /etc/zulip
|
|
echo -e "[machine]\npuppet_classes = zulip::local_server" > /etc/zulip/zulip.conf
|
|
/root/zulip/scripts/zulip-puppet-apply -f
|
|
cp -a /root/zulip /home/zulip/zulip
|
|
chown -R zulip:zulip /home/zulip/zulip
|
|
|
|
# These server restarting bits should be moveable into puppet-land, ideally
|
|
apt-get -y upgrade
|
|
if [ -e "/etc/init.d/nginx" ]; then
|
|
service nginx restart
|
|
fi
|
|
if [ -e "/etc/init.d/apache2" ]; then
|
|
service apache2 restart
|
|
fi
|
|
|
|
EOF
|
|
|
|
set +x
|
|
cat <<EOF
|
|
|
|
Done.
|
|
|
|
Now do the next step!
|
|
|
|
EOF
|