瀏覽代碼

s/USER/GOGS_USER/g

Luca Beltrame 10 年之前
父節點
當前提交
d95e7065d9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/init/centos/gogs

+ 1 - 1
scripts/init/centos/gogs

@@ -42,7 +42,7 @@ RETVAL=0
 DAEMON_OPTS=""
 
 # Set additional options, if any
-[ ! -z "$GOGS_USER" ] && DAEMON_OPTS="$DAEMON_OPTS --user=${USER}"
+[ ! -z "$GOGS_USER" ] && DAEMON_OPTS="$DAEMON_OPTS --user=${GOGS_USER}"
 
 start() {
   cd ${GOGS_HOME}