File tree Expand file tree Collapse file tree 5 files changed +18
-15
lines changed Expand file tree Collapse file tree 5 files changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ RUN busybox --install \
32
32
RUN rm -rf /etc/update-motd.d /etc/motd /etc/motd.dynamic
33
33
RUN ln -fs /dev/null /run/motd.dynamic
34
34
35
+ # Legacy code to be removed on 17.0. See: https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7035
36
+ ENV GITLAB_ALLOW_SHA1_RSA=false
37
+
35
38
# Copy assets
36
39
COPY RELEASE /
37
40
COPY assets/ /assets/
Original file line number Diff line number Diff line change 1
1
PACKAGECLOUD_REPO=raspberry-pi2
2
2
RELEASE_PACKAGE=gitlab-ce
3
- RELEASE_VERSION=16.1.5 -ce.0
3
+ RELEASE_VERSION=16.3.6 -ce.0
4
4
DOWNLOAD_URL=https://packages.gitlab.com/gitlab/${PACKAGECLOUD_REPO}/packages/raspbian/buster/${RELEASE_PACKAGE}_${RELEASE_VERSION}_armhf.deb/download.deb
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- if [[ ${DOWNLOAD_URL} == * " amazonaws" * ]]; then
4
- echo " Downloading package from Amazon bucket - ${DOWNLOAD_URL} "
5
- wget --quiet ${DOWNLOAD_URL} -O /tmp/gitlab.deb
6
- else
7
- echo " Downloading package as artifact - ${DOWNLOAD_URL} "
8
- # If we are fetching the package which is available as an artifact, we need
9
- # to authenticate to access it. Hence, we pass PRIVATE-TOKEN header.
10
- wget --quiet --header " PRIVATE-TOKEN: ${TRIGGER_PRIVATE_TOKEN} " ${DOWNLOAD_URL} -O /tmp/gitlab.deb
11
- fi
3
+ echo " Downloading package as artifact - ${DOWNLOAD_URL} "
4
+ wget --quiet --header " JOB-TOKEN: ${CI_JOB_TOKEN} " ${DOWNLOAD_URL} -O /tmp/gitlab.deb
12
5
13
6
results=$?
14
7
if [ ${results} -ne 0 ]; then
Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ source /RELEASE
6
6
7
7
# Remove sensitive content from RELEASE file. We can't remove the file because
8
8
# we are using it in assets/wrapper.
9
- sed -i " /DOWNLOAD_URL/d;/TRIGGER_PRIVATE_TOKEN /d;" /RELEASE
9
+ sed -i " /DOWNLOAD_URL/d;/CI_JOB_TOKEN /d;" /RELEASE
10
10
11
11
# Install GitLab
12
- DOWNLOAD_URL=${DOWNLOAD_URL} TRIGGER_PRIVATE_TOKEN =${TRIGGER_PRIVATE_TOKEN } /assets/download-package && dpkg -i /tmp/gitlab.deb && rm /tmp/gitlab.deb
12
+ DOWNLOAD_URL=${DOWNLOAD_URL} CI_JOB_TOKEN =${CI_JOB_TOKEN } /assets/download-package && dpkg -i /tmp/gitlab.deb && rm /tmp/gitlab.deb
13
13
rm -rf /var/lib/apt/lists/*
14
14
15
15
unset DOWNLOAD_URL
16
- unset TRIGGER_PRIVATE_TOKEN
16
+ unset CI_JOB_TOKEN
17
17
18
18
# Create sshd daemon
19
19
mkdir -p /opt/gitlab/sv/sshd/supervise /opt/gitlab/sv/sshd/log/supervise
@@ -45,7 +45,7 @@ groupadd -g 992 gitlab-prometheus
45
45
groupadd -g 991 gitlab-consul
46
46
47
47
# Create accounts
48
- # # The git account is created with * as crypted password as ssh treats the account as locked if it has a !
48
+ # # The git account is created with * as crypted password as ssh treats the account as locked if it has a !
49
49
# # Issue #5891 https://gitlab.com/gitlab-org/omnibus-gitlab
50
50
useradd -m -u 998 -g git -p ' *' -m -s /bin/sh -d /var/opt/gitlab git
51
51
useradd -m -u 999 -g gitlab-www -m -s /bin/false -d /var/opt/gitlab/nginx gitlab-www
Original file line number Diff line number Diff line change @@ -106,6 +106,13 @@ sleep 3s
106
106
# Run unclean start detection & cleanup
107
107
detect_unclean_start
108
108
109
+ # Legacy block to be removed on 17.0. See: https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7035
110
+ # It re-adds support for rsa key types which was removed on 16.0 without going
111
+ # through the proper deprecation process.
112
+ if [ " ${GITLAB_ALLOW_SHA1_RSA} " == ' true' ]; then
113
+ printf ' \n# Enabled/Disabled via GITLAB_ALLOW_SHA1_RSA=[true/false]\nHostKeyAlgorithms +ssh-rsa\nPubkeyAcceptedKeyTypes +ssh-rsa' >> /assets/sshd_config
114
+ fi
115
+
109
116
# Check if this is a valid upgrade path
110
117
# If the VERSION file doesn't exist, then this is not an upgrade
111
118
if old_version=$( cat /var/opt/gitlab/gitlab-rails/VERSION)
189
196
190
197
# This must be false when the opt-in PostgreSQL version is the default for pg-upgrade,
191
198
# otherwise it must be true.
192
- ATTEMPT_AUTO_PG_UPGRADE=' true '
199
+ ATTEMPT_AUTO_PG_UPGRADE=' false '
193
200
194
201
# Make sure PostgreSQL is at the latest version.
195
202
# If it fails, print a message with a workaround and exit
You can’t perform that action at this time.
0 commit comments