-
Notifications
You must be signed in to change notification settings - Fork 20
/
summary.sh
32 lines (25 loc) · 926 Bytes
/
summary.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -euxo pipefail
domain=$(hostname --fqdn)
# see the gitlab services status.
gitlab-ctl status
# show the gitlab environment info.
gitlab-rake gitlab:env:info
# show software versions.
dpkg-query --showformat '${Package} ${Version}\n' --show gitlab-ce
/opt/gitlab/embedded/bin/git --version
/opt/gitlab/embedded/bin/ruby -v
gitlab-rails --version
gitlab-psql --version
/opt/gitlab/embedded/bin/redis-server --version
/opt/gitlab/embedded/sbin/nginx -v
# list projects using the gitlab-cli tool.
echo 'GitLab projects:'
gitlab -o yaml -f id,web_url project list --get-all
# try the source-link-proxy.
http -v --check-status --ignore-stdin \
https://root:HeyH0Password@$domain/example/ubuntu-vagrant/raw/master/.gitignore \
User-Agent:SourceLink
# show GitLab address and root credentials.
echo "GitLab is running at https://$domain"
echo 'Sign in with the root user and the HeyH0Password password'