diff options
author | 无闻 <u@gogs.io> | 2015-09-28 14:21:52 -0400 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2015-09-28 14:21:52 -0400 |
commit | e00268895c058658e45edc4f00287562b0efe036 (patch) | |
tree | f672273d62f8dd28757e521f56912dce38f1967d | |
parent | a205acf82969071352c8bbea3d225b3dab9608f5 (diff) | |
parent | 4a05c4a759a71706a897075405be5f437d5530a1 (diff) | |
download | gitea-e00268895c058658e45edc4f00287562b0efe036.tar.gz gitea-e00268895c058658e45edc4f00287562b0efe036.zip |
Merge pull request #1710 from geerlingguy/patch-1
Set USER env variable so installation can complete successfully.
-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" |