summaryrefslogtreecommitdiff
path: root/lib/api/files.rb
diff options
context:
space:
mode:
authorNilton Moura <moura.nilton@gmail.com>2013-12-26 17:13:25 -0200
committerNilton Moura <moura.nilton@gmail.com>2013-12-26 17:13:25 -0200
commit6daa97f47212d89bfa0dcbb7f549ecb68d1b3783 (patch)
tree4ccb58246fb5e1d13ad26d6d0445382a9c68dae7 /lib/api/files.rb
parentb27bd2b10d08e16663d6554d11e0eeef708a87d5 (diff)
downloadgitlab-ce-6daa97f47212d89bfa0dcbb7f549ecb68d1b3783.tar.gz
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.
Diffstat (limited to 'lib/api/files.rb')
0 files changed, 0 insertions, 0 deletions