diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2015-09-26 23:33:53 -0500 |
---|---|---|
committer | Jeff Geerling <geerlingguy@mac.com> | 2015-09-26 23:33:53 -0500 |
commit | 4a05c4a759a71706a897075405be5f437d5530a1 (patch) | |
tree | 742d63efbaf8f13380c186fa4174f60a73eb14de /scripts | |
parent | d5ad4e1141c27410920faaddc60794bf53ee98d0 (diff) | |
download | gitea-4a05c4a759a71706a897075405be5f437d5530a1.tar.gz gitea-4a05c4a759a71706a897075405be5f437d5530a1.zip |
Set USER env variable so installation can complete successfully.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/init/debian/gogs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/init/debian/gogs b/scripts/init/debian/gogs index b0b52286fc..187e23a96c 100644 --- a/scripts/init/debian/gogs +++ b/scripts/init/debian/gogs @@ -48,11 +48,11 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - sh -c "start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\ + sh -c "USER=$USER start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\ --test --chdir $WORKINGDIR --chuid $USER \\ --exec $DAEMON -- $DAEMON_ARGS > /dev/null \\ || return 1" - sh -c "start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\ + sh -c "USER=$USER start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile \\ --background --chdir $WORKINGDIR --chuid $USER \\ --exec $DAEMON -- $DAEMON_ARGS \\ || return 2" |