Commit e82dd11c authored by John Jarvis's avatar John Jarvis
Browse files

Update the GEO testbed using the nightly omnibus package builds.

parent e0059b54
......@@ -12,7 +12,7 @@ mkdir -p /var/opt/gitlab
mount /dev/gitlab_vg/gitlab_var /var/opt/gitlab
# Set apt config, update repos and disable postfix prompt
curl | sudo bash
curl | sudo bash
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'No configuration'"
# install everything in one go
......@@ -57,4 +57,25 @@ cp /var/opt/gitlab/postgresql/data/recovery.conf.create /var/opt/gitlab/postgres
/usr/bin/envdir /etc/wal-e.d/env /opt/wal-e/bin/wal-e backup-fetch /var/opt/gitlab/postgresql/data "$last_backup"
gitlab-ctl start posgresql
chmod 755 /tmp/
# don't do migrations as part of the package installation
touch /etc/gitlab/skip-auto-migrations
# create a script for enabling auto nightly updates
cat > /etc/cron.daily/update-gitlab-nightly <<NIGHTLY
#!/bin/bash -e
exec &> >(tee -a "/tmp/update-nightly.log")
echo "Starting GitLab automatic upgrade - $(date)"
set -e
if grep down <(gitlab-ctl status); then
echo "Gitlab is not running, not upgrading"
exit 1
apt-get update
apt-get install -y gitlab-ee
gitlab-rake db:migrate
gitlab-ctl reconfigure
sed -i 's/^max_replication_slots = 0/max_replication_slots = 100/' /var/opt/gitlab/postgresql/data/postgresql.conf
gitlab-ctl restart
chmod 755 /tmp/ /etc/cron.daily/update-gitlab-nightly
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment