mirror of https://github.com/zulip/zulip.git
ci: Unpack installation tarball under /root/.
This ensures that we exercise the fact that the Zulip installer may be
unpacked to a directory that may not be world-readable.
bc45525369
fixed a recent regression in
this behavior that would have been caught by this commit.
This commit is contained in:
parent
e015f3ed7d
commit
3af0485d84
|
@ -151,12 +151,8 @@ jobs:
|
||||||
# cache action to work. It is owned by root currently.
|
# cache action to work. It is owned by root currently.
|
||||||
sudo chmod -R 0777 /__w/_temp/
|
sudo chmod -R 0777 /__w/_temp/
|
||||||
|
|
||||||
# Create the zulip directory that the tools/ci/ scripts needs
|
|
||||||
mkdir -p /home/github/zulip
|
|
||||||
|
|
||||||
# Since actions/download-artifact@v2 loses all the permissions
|
# Since actions/download-artifact@v2 loses all the permissions
|
||||||
# of the tarball uploaded by the upload artifact fix those.
|
# of the tarball uploaded by the upload artifact fix those.
|
||||||
chmod +x /tmp/production-extract-tarball
|
|
||||||
chmod +x /tmp/production-upgrade-pg
|
chmod +x /tmp/production-upgrade-pg
|
||||||
chmod +x /tmp/production-install
|
chmod +x /tmp/production-install
|
||||||
chmod +x /tmp/production-verify
|
chmod +x /tmp/production-verify
|
||||||
|
@ -182,9 +178,6 @@ jobs:
|
||||||
# https://chat.zulip.org/#narrow/stream/3-backend/topic/Ubuntu.20bionic.20CircleCI
|
# https://chat.zulip.org/#narrow/stream/3-backend/topic/Ubuntu.20bionic.20CircleCI
|
||||||
sudo sed -i '/^bind/s/bind.*/bind 0.0.0.0/' /etc/redis/redis.conf
|
sudo sed -i '/^bind/s/bind.*/bind 0.0.0.0/' /etc/redis/redis.conf
|
||||||
|
|
||||||
- name: Production extract tarball
|
|
||||||
run: /tmp/production-extract-tarball
|
|
||||||
|
|
||||||
- name: Install production
|
- name: Install production
|
||||||
run: |
|
run: |
|
||||||
sudo service rabbitmq-server restart
|
sudo service rabbitmq-server restart
|
||||||
|
|
|
@ -38,7 +38,6 @@ cp -a \
|
||||||
tools/ci/production-install \
|
tools/ci/production-install \
|
||||||
tools/ci/production-verify \
|
tools/ci/production-verify \
|
||||||
tools/ci/production-upgrade-pg \
|
tools/ci/production-upgrade-pg \
|
||||||
tools/ci/production-extract-tarball \
|
|
||||||
tools/ci/send-failure-message \
|
tools/ci/send-failure-message \
|
||||||
package.json yarn.lock \
|
package.json yarn.lock \
|
||||||
\
|
\
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
ZULIP_PATH=/home/github/zulip
|
|
||||||
tar -xf /tmp/zulip-server-test.tar.gz -C "$ZULIP_PATH" --strip-components=1
|
|
|
@ -4,7 +4,9 @@
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
ZULIP_PATH=/home/github/zulip
|
ZULIP_PATH=/root/zulip-latest
|
||||||
|
mkdir -p "$ZULIP_PATH"
|
||||||
|
tar -xf /tmp/zulip-server-test.tar.gz -C "$ZULIP_PATH" --strip-components=1
|
||||||
|
|
||||||
# Do an apt upgrade to start with an up-to-date machine
|
# Do an apt upgrade to start with an up-to-date machine
|
||||||
APT_OPTIONS=(-o 'Dpkg::Options::=--force-confdef' -o 'Dpkg::Options::=--force-confold')
|
APT_OPTIONS=(-o 'Dpkg::Options::=--force-confdef' -o 'Dpkg::Options::=--force-confold')
|
||||||
|
|
|
@ -3,11 +3,9 @@
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
cd /home/github/zulip
|
su zulip -c /home/zulip/deployments/current/scripts/stop-server
|
||||||
|
/home/zulip/deployments/current/scripts/setup/upgrade-postgresql
|
||||||
su zulip -c ./scripts/stop-server
|
su zulip -c /home/zulip/deployments/current/scripts/start-server
|
||||||
./scripts/setup/upgrade-postgresql
|
|
||||||
su zulip -c ./scripts/start-server
|
|
||||||
|
|
||||||
echo "Upgrade of PostgreSQL complete!"
|
echo "Upgrade of PostgreSQL complete!"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue