mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
13 lines
528 B
Bash
13 lines
528 B
Bash
#!/usr/bin/env sh
|
|
|
|
# Fix permission errors when it keeps answering 502 and this log message appears:
|
|
# connect() to unix:/var/opt/gitlab/gitlab-workhorse/sockets/socket failed (13: Permission denied)
|
|
docker exec 'gitlab' chown 'gitlab-www:git' '/var/opt/gitlab/gitlab-workhorse/sockets/socket'
|
|
|
|
# Given by Gitlab itself, but not sure it actually does anything
|
|
docker exec 'gitlab' update-permissions
|
|
|
|
# Health checks
|
|
docker exec 'gitlab' curl -fksLS -o '/dev/null' -w "%{http_code}" 'https://localhost/'
|
|
nc localhost 22 -e true
|