Skip to content
Snippets Groups Projects
Commit 6daa97f4 authored by Nilton Moura's avatar Nilton Moura
Browse files

Changed sudo by su -c

The sudo command needs a tty to run. If you put this file on a CentOS 6, for example, it will not run in the host startup process. Instead, the 'su -c' runs the command apart if it has or not a tty.

I tested this change in a fresh install of gitlab on a CentOS 6.5 with successful.
parent b27bd2b1
No related branches found
No related tags found
Loading
Loading
  • Is there any reason this hasn't been merged into a stable release?

    I've been using exec su - "$app_user" -- $0 "$@"; exit; in my init to workaround this exact issue.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment