gitlabhq/gitlab-ci-runner — pull request #104 by barraq (2014-08-26 08:59:08+00:00)
Title: fix gitlab-ci-runner init.d script for debian

This commit addresses an issue with the gitlab-ci-runner init.d script on Debian based systems.
This script makes use of `sudo` which raise two problems on Debian:

1. by default `sudo` is not installed on Debian,
2. even if `sudo` is installed, `root` is not a sudoer by default on Debian

As a result the `execute` function from gitlab-ci-runner fails.

This commit replaces the following `execute` function from:

sudo -u $APP_USER -H bash -l -c "$1"

To

su $APP_USER -s /bin/bash -c "$1"

Signed-off-by: Remi BARRAQUAND
Signed-off-by: Charles EYNARD