Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9465

Closed
Open
Created Jul 20, 2015 by Administrator@rootOwner

Broken GitLab 7.12 service

Created by: NuLL3rr0r

Hello today I did an upgrade from 7.11.4 to 7.12.2. When I did: service gitlab start I faced with a new shell instead of starting GitLab. In the new shell running whoami says it is git user.

I did a diff: +shell_path="/bin/bash"

Switch to the app_user if it is not he/she who is running the script.

if [ "$USER" != "$app_user" ]; then

  • eval su - "$app_user" -c $(echo ")$0 "$@"$(echo "); exit;
  • eval su - "$app_user" -s $shell_path -c $(echo ")$0 "$@"$(echo "); exit;

And found two changes: shell_path="/bin/bash" On FreeBSD systems there is no Bash by default and when you install it either from Ports or pkgng it resides in /usr/local/bin/bash. So I changed it to its correct value on FreeBSD. But, I believe the following is a cross platform way of accessing a shell: /usr/bin/env ${SHELL_NAME}, e.g.: /usr/bin/env bash

It did not solve the problem anyway, and the culprit was the second change. reverting to eval su - "$app_user" -c $(echo ")$0 "$@"$(echo "); exit; (without shell_path variable) solved the issue for me.

Assignee
Assign to
Time tracking