Commit 0930ce26 authored by Kevin Daudt's avatar Kevin Daudt 💻
Browse files

gitlab: migrate existing nginx config to new location

155e8cab (gitlab/nginx: link config in new location, 2021-11-21) adjusted
the nginx configuration to a new location, but for existing setups, the
configuration still lives at the old location.

If the nginx config is missing, but still exists at the old location,
move it to the expected location.
parent 1e44ad22
Pipeline #103744 passed with stages
in 17 minutes and 7 seconds
......@@ -43,8 +43,13 @@ install_conf() {
if [ ! -f "/etc/gitlab/nginx/http.d/default.conf" ]; then
install -Dm644 /home/git/gitlab/lib/support/nginx/gitlab \
if [ -f "/etc/gitlab/nginx/conf.d/default.conf" ]; then
# migrate from conf.d to http.d
mv /etc/gitlab/nginx/conf.d /etc/nginx/http.d
install -Dm644 /home/git/gitlab/lib/support/nginx/gitlab \
Supports Markdown
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